linux/kernel/trace/trace_events_filter_test.h
<<
>>
Prefs
   1#undef TRACE_SYSTEM
   2#define TRACE_SYSTEM test
   3
   4#if !defined(_TRACE_TEST_H) || defined(TRACE_HEADER_MULTI_READ)
   5#define _TRACE_TEST_H
   6
   7#include <linux/tracepoint.h>
   8
   9TRACE_EVENT(ftrace_test_filter,
  10
  11        TP_PROTO(int a, int b, int c, int d, int e, int f, int g, int h),
  12
  13        TP_ARGS(a, b, c, d, e, f, g, h),
  14
  15        TP_STRUCT__entry(
  16                __field(int, a)
  17                __field(int, b)
  18                __field(int, c)
  19                __field(int, d)
  20                __field(int, e)
  21                __field(int, f)
  22                __field(int, g)
  23                __field(int, h)
  24        ),
  25
  26        TP_fast_assign(
  27                __entry->a = a;
  28                __entry->b = b;
  29                __entry->c = c;
  30                __entry->d = d;
  31                __entry->e = e;
  32                __entry->f = f;
  33                __entry->g = g;
  34                __entry->h = h;
  35        ),
  36
  37        TP_printk("a %d, b %d, c %d, d %d, e %d, f %d, g %d, h %d",
  38                  __entry->a, __entry->b, __entry->c, __entry->d,
  39                  __entry->e, __entry->f, __entry->g, __entry->h)
  40);
  41
  42#endif /* _TRACE_TEST_H || TRACE_HEADER_MULTI_READ */
  43
  44#undef TRACE_INCLUDE_PATH
  45#undef TRACE_INCLUDE_FILE
  46#define TRACE_INCLUDE_PATH .
  47#define TRACE_INCLUDE_FILE trace_events_filter_test
  48
  49/* This part must be outside protection */
  50#include <trace/define_trace.h>
  51
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.