View | Details | Raw Unified | Return to bug 18263 | Differences between
and this patch

Collapse All | Expand All

(-)a/tapset/linux/tty.stp (-20 / +20 lines)
Lines 75-81 probe tty.release = kernel.function("tty_release") Link Here
75
*/
75
*/
76
probe tty.resize = kernel.function("tiocswinsz")
76
probe tty.resize = kernel.function("tiocswinsz")
77
{
77
{
78
	name = kernel_string($tty->name)
78
	name = kernel_string_quoted($tty->name)
79
	old_row = $tty->winsize->ws_row
79
	old_row = $tty->winsize->ws_row
80
	old_col = $tty->winsize->ws_col
80
	old_col = $tty->winsize->ws_col
81
	old_ypixel = $tty->winsize->ws_ypixel
81
	old_ypixel = $tty->winsize->ws_ypixel
Lines 103-110 probe tty.resize = kernel.function("tiocswinsz") Link Here
103
 */
103
 */
104
probe tty.ioctl = kernel.function("tty_ioctl")
104
probe tty.ioctl = kernel.function("tty_ioctl")
105
{
105
{
106
	name = kernel_string(@choose_defined($file->f_path->dentry->d_iname,
106
	name = kernel_string_quoted(@choose_defined($file->f_path->dentry->d_iname,
107
					     $file->f_dentry->d_iname))
107
						    $file->f_dentry->d_iname))
108
	cmd = $cmd
108
	cmd = $cmd
109
	arg = $arg
109
	arg = $arg
110
}
110
}
Lines 118-126 probe tty.ioctl = kernel.function("tty_ioctl") Link Here
118
probe tty.init = kernel.function("tty_init_dev") !,
118
probe tty.init = kernel.function("tty_init_dev") !,
119
		 kernel.function("init_dev")
119
		 kernel.function("init_dev")
120
{
120
{
121
	driver_name = kernel_string($driver->driver_name)
121
	driver_name = kernel_string_quoted($driver->driver_name)
122
	name = kernel_string($driver->name)
122
	name = kernel_string_quoted($driver->name)
123
	module = kernel_string($driver->owner->name)
123
	module = kernel_string_quoted($driver->owner->name)
124
}
124
}
125
125
126
/**
126
/**
Lines 132-140 probe tty.init = kernel.function("tty_init_dev") !, Link Here
132
 */
132
 */
133
probe tty.register = kernel.function("tty_register_device")
133
probe tty.register = kernel.function("tty_register_device")
134
{
134
{
135
	driver_name = kernel_string($driver->driver_name)
135
	driver_name = kernel_string_quoted($driver->driver_name)
136
	name = kernel_string($driver->name)
136
	name = kernel_string_quoted($driver->name)
137
	module = kernel_string($driver->owner->name)
137
	module = kernel_string_quoted($driver->owner->name)
138
	index = $index
138
	index = $index
139
}
139
}
140
140
Lines 147-155 probe tty.register = kernel.function("tty_register_device") Link Here
147
 */
147
 */
148
probe tty.unregister = kernel.function("tty_unregister_device")
148
probe tty.unregister = kernel.function("tty_unregister_device")
149
{
149
{
150
	driver_name = kernel_string($driver->driver_name)
150
	driver_name = kernel_string_quoted($driver->driver_name)
151
	name = kernel_string($driver->name)
151
	name = kernel_string_quoted($driver->name)
152
	module = kernel_string($driver->owner->name)
152
	module = kernel_string_quoted($driver->owner->name)
153
	index = $index
153
	index = $index
154
}
154
}
155
155
Lines 178-189 probe tty.poll = kernel.function("tty_poll") Link Here
178
 */
178
 */
179
probe tty.receive = kernel.function("n_tty_receive_buf")
179
probe tty.receive = kernel.function("n_tty_receive_buf")
180
{
180
{
181
	cp = kernel_string($cp)
181
	cp = kernel_string_quoted($cp)
182
	fp = kernel_string($fp)
182
	fp = kernel_string_quoted($fp)
183
	count = $count
183
	count = $count
184
184
185
	driver_name = kernel_string($tty->driver->driver_name)
185
	driver_name = kernel_string_quoted($tty->driver->driver_name)
186
	name = kernel_string($tty->driver->name)
186
	name = kernel_string_quoted($tty->driver->name)
187
	index = $tty->index
187
	index = $tty->index
188
	id = $tty->magic
188
	id = $tty->magic
189
}
189
}
Lines 198-209 probe tty.receive = kernel.function("n_tty_receive_buf") Link Here
198
probe tty.write = kernel.function("n_tty_write") !,
198
probe tty.write = kernel.function("n_tty_write") !,
199
		  kernel.function("write_chan")
199
		  kernel.function("write_chan")
200
{
200
{
201
	buffer = kernel_string($buf)
201
	buffer = kernel_string_quoted($buf)
202
	nr = $nr
202
	nr = $nr
203
203
204
	file_name = d_name(@choose_defined($file->f_path->dentry,
204
	file_name = d_name(@choose_defined($file->f_path->dentry,
205
					   $file->f_dentry))
205
					   $file->f_dentry))
206
	driver_name = kernel_string($tty->driver->driver_name)
206
	driver_name = kernel_string_quoted($tty->driver->driver_name)
207
}
207
}
208
208
209
/**
209
/**
Lines 216-224 probe tty.write = kernel.function("n_tty_write") !, Link Here
216
probe tty.read = kernel.function("n_tty_read") !,
216
probe tty.read = kernel.function("n_tty_read") !,
217
		 kernel.function("read_chan")
217
		 kernel.function("read_chan")
218
{
218
{
219
	buffer = kernel_string($buf)
219
	buffer = kernel_string_quoted($buf)
220
	nr = $nr
220
	nr = $nr
221
	file_name = d_name(@choose_defined($file->f_path->dentry,
221
	file_name = d_name(@choose_defined($file->f_path->dentry,
222
					   $file->f_dentry))
222
					   $file->f_dentry))
223
	driver_name = kernel_string($tty->driver->driver_name)
223
	driver_name = kernel_string_quoted($tty->driver->driver_name)
224
}
224
}

Return to bug 18263