aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r--kernel/trace/trace_functions.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c
index 021a574c598..6ea73ed03bf 100644
--- a/kernel/trace/trace_functions.c
+++ b/kernel/trace/trace_functions.c
@@ -269,21 +269,21 @@ ftrace_traceoff(unsigned long ip, unsigned long parent_ip, void **data)
269 269
270static int 270static int
271ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip, 271ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
272 struct ftrace_hook_ops *ops, void *data); 272 struct ftrace_probe_ops *ops, void *data);
273 273
274static struct ftrace_hook_ops traceon_hook_ops = { 274static struct ftrace_probe_ops traceon_probe_ops = {
275 .func = ftrace_traceon, 275 .func = ftrace_traceon,
276 .print = ftrace_trace_onoff_print, 276 .print = ftrace_trace_onoff_print,
277}; 277};
278 278
279static struct ftrace_hook_ops traceoff_hook_ops = { 279static struct ftrace_probe_ops traceoff_probe_ops = {
280 .func = ftrace_traceoff, 280 .func = ftrace_traceoff,
281 .print = ftrace_trace_onoff_print, 281 .print = ftrace_trace_onoff_print,
282}; 282};
283 283
284static int 284static int
285ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip, 285ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
286 struct ftrace_hook_ops *ops, void *data) 286 struct ftrace_probe_ops *ops, void *data)
287{ 287{
288 char str[KSYM_SYMBOL_LEN]; 288 char str[KSYM_SYMBOL_LEN];
289 long count = (long)data; 289 long count = (long)data;
@@ -291,7 +291,7 @@ ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
291 kallsyms_lookup(ip, NULL, NULL, NULL, str); 291 kallsyms_lookup(ip, NULL, NULL, NULL, str);
292 seq_printf(m, "%s:", str); 292 seq_printf(m, "%s:", str);
293 293
294 if (ops == &traceon_hook_ops) 294 if (ops == &traceon_probe_ops)
295 seq_printf(m, "traceon"); 295 seq_printf(m, "traceon");
296 else 296 else
297 seq_printf(m, "traceoff"); 297 seq_printf(m, "traceoff");
@@ -306,15 +306,15 @@ ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
306static int 306static int
307ftrace_trace_onoff_unreg(char *glob, char *cmd, char *param) 307ftrace_trace_onoff_unreg(char *glob, char *cmd, char *param)
308{ 308{
309 struct ftrace_hook_ops *ops; 309 struct ftrace_probe_ops *ops;
310 310
311 /* we register both traceon and traceoff to this callback */ 311 /* we register both traceon and traceoff to this callback */
312 if (strcmp(cmd, "traceon") == 0) 312 if (strcmp(cmd, "traceon") == 0)
313 ops = &traceon_hook_ops; 313 ops = &traceon_probe_ops;
314 else 314 else
315 ops = &traceoff_hook_ops; 315 ops = &traceoff_probe_ops;
316 316
317 unregister_ftrace_function_hook_func(glob, ops); 317 unregister_ftrace_function_probe_func(glob, ops);
318 318
319 return 0; 319 return 0;
320} 320}
@@ -322,7 +322,7 @@ ftrace_trace_onoff_unreg(char *glob, char *cmd, char *param)
322static int 322static int
323ftrace_trace_onoff_callback(char *glob, char *cmd, char *param, int enable) 323ftrace_trace_onoff_callback(char *glob, char *cmd, char *param, int enable)
324{ 324{
325 struct ftrace_hook_ops *ops; 325 struct ftrace_probe_ops *ops;
326 void *count = (void *)-1; 326 void *count = (void *)-1;
327 char *number; 327 char *number;
328 int ret; 328 int ret;
@@ -336,9 +336,9 @@ ftrace_trace_onoff_callback(char *glob, char *cmd, char *param, int enable)
336 336
337 /* we register both traceon and traceoff to this callback */ 337 /* we register both traceon and traceoff to this callback */
338 if (strcmp(cmd, "traceon") == 0) 338 if (strcmp(cmd, "traceon") == 0)
339 ops = &traceon_hook_ops; 339 ops = &traceon_probe_ops;
340 else 340 else
341 ops = &traceoff_hook_ops; 341 ops = &traceoff_probe_ops;
342 342
343 if (!param) 343 if (!param)
344 goto out_reg; 344 goto out_reg;
@@ -357,7 +357,7 @@ ftrace_trace_onoff_callback(char *glob, char *cmd, char *param, int enable)
357 return ret; 357 return ret;
358 358
359 out_reg: 359 out_reg:
360 ret = register_ftrace_function_hook(glob, ops, count); 360 ret = register_ftrace_function_probe(glob, ops, count);
361 361
362 return ret; 362 return ret;
363} 363}