diff options
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/ftrace.h | 11 | ||||
-rw-r--r-- | include/trace/syscall.h | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h index 26d132418f92..c7e3bcd5d52f 100644 --- a/include/trace/ftrace.h +++ b/include/trace/ftrace.h | |||
@@ -430,6 +430,9 @@ static inline notrace int ftrace_get_offsets_##call( \ | |||
430 | * | 430 | * |
431 | * static struct ftrace_event_class __used event_class_<template> = { | 431 | * static struct ftrace_event_class __used event_class_<template> = { |
432 | * .system = "<system>", | 432 | * .system = "<system>", |
433 | * .define_fields = ftrace_define_fields_<call>, | ||
434 | * .fields = LIST_HEAD_INIT(event_class_##call.fields), \ | ||
435 | * .probe = ftrace_raw_event_##call, \ | ||
433 | * }; | 436 | * }; |
434 | * | 437 | * |
435 | * static struct ftrace_event_call __used | 438 | * static struct ftrace_event_call __used |
@@ -438,10 +441,8 @@ static inline notrace int ftrace_get_offsets_##call( \ | |||
438 | * .name = "<call>", | 441 | * .name = "<call>", |
439 | * .class = event_class_<template>, | 442 | * .class = event_class_<template>, |
440 | * .raw_init = trace_event_raw_init, | 443 | * .raw_init = trace_event_raw_init, |
441 | * .regfunc = ftrace_raw_reg_event_<call>, | 444 | * .event = &ftrace_event_type_<call>, |
442 | * .unregfunc = ftrace_raw_unreg_event_<call>, | ||
443 | * .print_fmt = print_fmt_<call>, | 445 | * .print_fmt = print_fmt_<call>, |
444 | * .define_fields = ftrace_define_fields_<call>, | ||
445 | * }; | 446 | * }; |
446 | * | 447 | * |
447 | */ | 448 | */ |
@@ -563,6 +564,8 @@ _TRACE_PERF_PROTO(call, PARAMS(proto)); \ | |||
563 | static const char print_fmt_##call[] = print; \ | 564 | static const char print_fmt_##call[] = print; \ |
564 | static struct ftrace_event_class __used event_class_##call = { \ | 565 | static struct ftrace_event_class __used event_class_##call = { \ |
565 | .system = __stringify(TRACE_SYSTEM), \ | 566 | .system = __stringify(TRACE_SYSTEM), \ |
567 | .define_fields = ftrace_define_fields_##call, \ | ||
568 | .fields = LIST_HEAD_INIT(event_class_##call.fields),\ | ||
566 | .probe = ftrace_raw_event_##call, \ | 569 | .probe = ftrace_raw_event_##call, \ |
567 | _TRACE_PERF_INIT(call) \ | 570 | _TRACE_PERF_INIT(call) \ |
568 | }; | 571 | }; |
@@ -578,7 +581,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \ | |||
578 | .event = &ftrace_event_type_##call, \ | 581 | .event = &ftrace_event_type_##call, \ |
579 | .raw_init = trace_event_raw_init, \ | 582 | .raw_init = trace_event_raw_init, \ |
580 | .print_fmt = print_fmt_##template, \ | 583 | .print_fmt = print_fmt_##template, \ |
581 | .define_fields = ftrace_define_fields_##template, \ | ||
582 | }; | 584 | }; |
583 | 585 | ||
584 | #undef DEFINE_EVENT_PRINT | 586 | #undef DEFINE_EVENT_PRINT |
@@ -594,7 +596,6 @@ __attribute__((section("_ftrace_events"))) event_##call = { \ | |||
594 | .event = &ftrace_event_type_##call, \ | 596 | .event = &ftrace_event_type_##call, \ |
595 | .raw_init = trace_event_raw_init, \ | 597 | .raw_init = trace_event_raw_init, \ |
596 | .print_fmt = print_fmt_##call, \ | 598 | .print_fmt = print_fmt_##call, \ |
597 | .define_fields = ftrace_define_fields_##template, \ | ||
598 | } | 599 | } |
599 | 600 | ||
600 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) | 601 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) |
diff --git a/include/trace/syscall.h b/include/trace/syscall.h index e5e5f48dbfb3..39647743cd95 100644 --- a/include/trace/syscall.h +++ b/include/trace/syscall.h | |||
@@ -25,6 +25,8 @@ struct syscall_metadata { | |||
25 | int nb_args; | 25 | int nb_args; |
26 | const char **types; | 26 | const char **types; |
27 | const char **args; | 27 | const char **args; |
28 | struct list_head enter_fields; | ||
29 | struct list_head exit_fields; | ||
28 | 30 | ||
29 | struct ftrace_event_call *enter_event; | 31 | struct ftrace_event_call *enter_event; |
30 | struct ftrace_event_call *exit_event; | 32 | struct ftrace_event_call *exit_event; |
@@ -34,8 +36,6 @@ struct syscall_metadata { | |||
34 | extern unsigned long arch_syscall_addr(int nr); | 36 | extern unsigned long arch_syscall_addr(int nr); |
35 | extern int init_syscall_trace(struct ftrace_event_call *call); | 37 | extern int init_syscall_trace(struct ftrace_event_call *call); |
36 | 38 | ||
37 | extern int syscall_enter_define_fields(struct ftrace_event_call *call); | ||
38 | extern int syscall_exit_define_fields(struct ftrace_event_call *call); | ||
39 | extern int reg_event_syscall_enter(struct ftrace_event_call *call); | 39 | extern int reg_event_syscall_enter(struct ftrace_event_call *call); |
40 | extern void unreg_event_syscall_enter(struct ftrace_event_call *call); | 40 | extern void unreg_event_syscall_enter(struct ftrace_event_call *call); |
41 | extern int reg_event_syscall_exit(struct ftrace_event_call *call); | 41 | extern int reg_event_syscall_exit(struct ftrace_event_call *call); |