/* * Define unused __count and __task variables to use @args to pass * arguments to do_perf_trace_##call. This is needed because the * macros __perf_count and __perf_task introduce the side-effect to * store copies into those local variables.
*/ #undef DECLARE_EVENT_CLASS #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
__DECLARE_EVENT_CLASS(call, PARAMS(proto), PARAMS(args), PARAMS(tstruct), \
PARAMS(assign), PARAMS(print)) \ static notrace void \
perf_trace_##call(void *__data, proto) \
{ \
u64 __count __attribute__((unused)); \ struct task_struct *__task __attribute__((unused)); \
\
do_perf_trace_##call(__data, args); \
}
/* * This part is compiled out, it is only here as a build time check * to make sure that if the tracepoint handling changes, the * perf probe will fail to compile unless it too is updated.
*/ #undef DEFINE_EVENT #define DEFINE_EVENT(template, call, proto, args) \ staticinlinevoid perf_test_probe_##call(void) \
{ \
check_trace_callback_type_##call(perf_trace_##template); \
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.