aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r--include/trace/ftrace.h11
1 files changed, 6 insertions, 5 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)); \
563static const char print_fmt_##call[] = print; \ 564static const char print_fmt_##call[] = print; \
564static struct ftrace_event_class __used event_class_##call = { \ 565static 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)