tracepoint.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef _LINUX_TRACEPOINT_H
  3. #define _LINUX_TRACEPOINT_H
  4. /*
  5. * Kernel Tracepoint API.
  6. *
  7. * See Documentation/trace/tracepoints.rst.
  8. *
  9. * Copyright (C) 2008-2014 Mathieu Desnoyers <[email protected]>
  10. *
  11. * Heavily inspired from the Linux Kernel Markers.
  12. */
  13. #include <linux/smp.h>
  14. #include <linux/srcu.h>
  15. #include <linux/errno.h>
  16. #include <linux/types.h>
  17. #include <linux/cpumask.h>
  18. #include <linux/rcupdate.h>
  19. #include <linux/tracepoint-defs.h>
  20. #include <linux/static_call.h>
  21. struct module;
  22. struct tracepoint;
  23. struct notifier_block;
  24. struct trace_eval_map {
  25. const char *system;
  26. const char *eval_string;
  27. unsigned long eval_value;
  28. };
  29. #define TRACEPOINT_DEFAULT_PRIO 10
  30. extern struct srcu_struct tracepoint_srcu;
  31. extern int
  32. tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data);
  33. extern int
  34. tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data,
  35. int prio);
  36. extern int
  37. tracepoint_probe_register_prio_may_exist(struct tracepoint *tp, void *probe, void *data,
  38. int prio);
  39. extern int
  40. tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data);
  41. static inline int
  42. tracepoint_probe_register_may_exist(struct tracepoint *tp, void *probe,
  43. void *data)
  44. {
  45. return tracepoint_probe_register_prio_may_exist(tp, probe, data,
  46. TRACEPOINT_DEFAULT_PRIO);
  47. }
  48. extern void
  49. for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv),
  50. void *priv);
  51. #ifdef CONFIG_MODULES
  52. struct tp_module {
  53. struct list_head list;
  54. struct module *mod;
  55. };
  56. bool trace_module_has_bad_taint(struct module *mod);
  57. extern int register_tracepoint_module_notifier(struct notifier_block *nb);
  58. extern int unregister_tracepoint_module_notifier(struct notifier_block *nb);
  59. #else
  60. static inline bool trace_module_has_bad_taint(struct module *mod)
  61. {
  62. return false;
  63. }
  64. static inline
  65. int register_tracepoint_module_notifier(struct notifier_block *nb)
  66. {
  67. return 0;
  68. }
  69. static inline
  70. int unregister_tracepoint_module_notifier(struct notifier_block *nb)
  71. {
  72. return 0;
  73. }
  74. #endif /* CONFIG_MODULES */
  75. /*
  76. * tracepoint_synchronize_unregister must be called between the last tracepoint
  77. * probe unregistration and the end of module exit to make sure there is no
  78. * caller executing a probe when it is freed.
  79. */
  80. #ifdef CONFIG_TRACEPOINTS
  81. static inline void tracepoint_synchronize_unregister(void)
  82. {
  83. synchronize_srcu(&tracepoint_srcu);
  84. synchronize_rcu();
  85. }
  86. #else
  87. static inline void tracepoint_synchronize_unregister(void)
  88. { }
  89. #endif
  90. #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS
  91. extern int syscall_regfunc(void);
  92. extern void syscall_unregfunc(void);
  93. #endif /* CONFIG_HAVE_SYSCALL_TRACEPOINTS */
  94. #ifndef PARAMS
  95. #define PARAMS(args...) args
  96. #endif
  97. #define TRACE_DEFINE_ENUM(x)
  98. #define TRACE_DEFINE_SIZEOF(x)
  99. #ifdef CONFIG_HAVE_ARCH_PREL32_RELOCATIONS
  100. static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
  101. {
  102. return offset_to_ptr(p);
  103. }
  104. #define __TRACEPOINT_ENTRY(name) \
  105. asm(" .section \"__tracepoints_ptrs\", \"a\" \n" \
  106. " .balign 4 \n" \
  107. " .long __tracepoint_" #name " - . \n" \
  108. " .previous \n")
  109. #else
  110. static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
  111. {
  112. return *p;
  113. }
  114. #define __TRACEPOINT_ENTRY(name) \
  115. static tracepoint_ptr_t __tracepoint_ptr_##name __used \
  116. __section("__tracepoints_ptrs") = &__tracepoint_##name
  117. #endif
  118. #endif /* _LINUX_TRACEPOINT_H */
  119. /*
  120. * Note: we keep the TRACE_EVENT and DECLARE_TRACE outside the include
  121. * file ifdef protection.
  122. * This is due to the way trace events work. If a file includes two
  123. * trace event headers under one "CREATE_TRACE_POINTS" the first include
  124. * will override the TRACE_EVENT and break the second include.
  125. */
  126. #ifndef DECLARE_TRACE
  127. #define TP_PROTO(args...) args
  128. #define TP_ARGS(args...) args
  129. #define TP_CONDITION(args...) args
  130. /*
  131. * Individual subsystem my have a separate configuration to
  132. * enable their tracepoints. By default, this file will create
  133. * the tracepoints if CONFIG_TRACEPOINTS is defined. If a subsystem
  134. * wants to be able to disable its tracepoints from being created
  135. * it can define NOTRACE before including the tracepoint headers.
  136. */
  137. #if defined(CONFIG_TRACEPOINTS) && !defined(NOTRACE)
  138. #define TRACEPOINTS_ENABLED
  139. #endif
  140. #ifdef TRACEPOINTS_ENABLED
  141. #ifdef CONFIG_HAVE_STATIC_CALL
  142. #define __DO_TRACE_CALL(name, args) \
  143. do { \
  144. struct tracepoint_func *it_func_ptr; \
  145. void *__data; \
  146. it_func_ptr = \
  147. rcu_dereference_raw((&__tracepoint_##name)->funcs); \
  148. if (it_func_ptr) { \
  149. __data = (it_func_ptr)->data; \
  150. static_call(tp_func_##name)(__data, args); \
  151. } \
  152. } while (0)
  153. #else
  154. #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args)
  155. #endif /* CONFIG_HAVE_STATIC_CALL */
  156. /*
  157. * it_func[0] is never NULL because there is at least one element in the array
  158. * when the array itself is non NULL.
  159. */
  160. #define __DO_TRACE(name, args, cond, rcuidle) \
  161. do { \
  162. int __maybe_unused __idx = 0; \
  163. \
  164. if (!(cond)) \
  165. return; \
  166. \
  167. /* srcu can't be used from NMI */ \
  168. WARN_ON_ONCE(rcuidle && in_nmi()); \
  169. \
  170. /* keep srcu and sched-rcu usage consistent */ \
  171. preempt_disable_notrace(); \
  172. \
  173. /* \
  174. * For rcuidle callers, use srcu since sched-rcu \
  175. * doesn't work from the idle path. \
  176. */ \
  177. if (rcuidle) { \
  178. __idx = srcu_read_lock_notrace(&tracepoint_srcu);\
  179. ct_irq_enter_irqson(); \
  180. } \
  181. \
  182. __DO_TRACE_CALL(name, TP_ARGS(args)); \
  183. \
  184. if (rcuidle) { \
  185. ct_irq_exit_irqson(); \
  186. srcu_read_unlock_notrace(&tracepoint_srcu, __idx);\
  187. } \
  188. \
  189. preempt_enable_notrace(); \
  190. } while (0)
  191. #ifndef MODULE
  192. #define __DECLARE_TRACE_RCU(name, proto, args, cond) \
  193. static inline void trace_##name##_rcuidle(proto) \
  194. { \
  195. if (static_key_false(&__tracepoint_##name.key)) \
  196. __DO_TRACE(name, \
  197. TP_ARGS(args), \
  198. TP_CONDITION(cond), 1); \
  199. }
  200. #else
  201. #define __DECLARE_TRACE_RCU(name, proto, args, cond)
  202. #endif
  203. /*
  204. * Make sure the alignment of the structure in the __tracepoints section will
  205. * not add unwanted padding between the beginning of the section and the
  206. * structure. Force alignment to the same alignment as the section start.
  207. *
  208. * When lockdep is enabled, we make sure to always test if RCU is
  209. * "watching" regardless if the tracepoint is enabled or not. Tracepoints
  210. * require RCU to be active, and it should always warn at the tracepoint
  211. * site if it is not watching, as it will need to be active when the
  212. * tracepoint is enabled.
  213. */
  214. #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \
  215. extern int __traceiter_##name(data_proto); \
  216. DECLARE_STATIC_CALL(tp_func_##name, __traceiter_##name); \
  217. extern struct tracepoint __tracepoint_##name; \
  218. static inline void trace_##name(proto) \
  219. { \
  220. if (static_key_false(&__tracepoint_##name.key)) \
  221. __DO_TRACE(name, \
  222. TP_ARGS(args), \
  223. TP_CONDITION(cond), 0); \
  224. if (IS_ENABLED(CONFIG_LOCKDEP) && (cond)) { \
  225. WARN_ON_ONCE(!rcu_is_watching()); \
  226. } \
  227. } \
  228. __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
  229. PARAMS(cond)) \
  230. static inline int \
  231. register_trace_##name(void (*probe)(data_proto), void *data) \
  232. { \
  233. return tracepoint_probe_register(&__tracepoint_##name, \
  234. (void *)probe, data); \
  235. } \
  236. static inline int \
  237. register_trace_prio_##name(void (*probe)(data_proto), void *data,\
  238. int prio) \
  239. { \
  240. return tracepoint_probe_register_prio(&__tracepoint_##name, \
  241. (void *)probe, data, prio); \
  242. } \
  243. static inline int \
  244. unregister_trace_##name(void (*probe)(data_proto), void *data) \
  245. { \
  246. return tracepoint_probe_unregister(&__tracepoint_##name,\
  247. (void *)probe, data); \
  248. } \
  249. static inline void \
  250. check_trace_callback_type_##name(void (*cb)(data_proto)) \
  251. { \
  252. } \
  253. static inline bool \
  254. trace_##name##_enabled(void) \
  255. { \
  256. return static_key_false(&__tracepoint_##name.key); \
  257. }
  258. /*
  259. * We have no guarantee that gcc and the linker won't up-align the tracepoint
  260. * structures, so we create an array of pointers that will be used for iteration
  261. * on the tracepoints.
  262. */
  263. #define DEFINE_TRACE_FN(_name, _reg, _unreg, proto, args) \
  264. static const char __tpstrtab_##_name[] \
  265. __section("__tracepoints_strings") = #_name; \
  266. extern struct static_call_key STATIC_CALL_KEY(tp_func_##_name); \
  267. int __traceiter_##_name(void *__data, proto); \
  268. struct tracepoint __tracepoint_##_name __used \
  269. __section("__tracepoints") = { \
  270. .name = __tpstrtab_##_name, \
  271. .key = STATIC_KEY_INIT_FALSE, \
  272. .static_call_key = &STATIC_CALL_KEY(tp_func_##_name), \
  273. .static_call_tramp = STATIC_CALL_TRAMP_ADDR(tp_func_##_name), \
  274. .iterator = &__traceiter_##_name, \
  275. .regfunc = _reg, \
  276. .unregfunc = _unreg, \
  277. .funcs = NULL }; \
  278. __TRACEPOINT_ENTRY(_name); \
  279. int __traceiter_##_name(void *__data, proto) \
  280. { \
  281. struct tracepoint_func *it_func_ptr; \
  282. void *it_func; \
  283. \
  284. it_func_ptr = \
  285. rcu_dereference_raw((&__tracepoint_##_name)->funcs); \
  286. if (it_func_ptr) { \
  287. do { \
  288. it_func = READ_ONCE((it_func_ptr)->func); \
  289. __data = (it_func_ptr)->data; \
  290. ((void(*)(void *, proto))(it_func))(__data, args); \
  291. } while ((++it_func_ptr)->func); \
  292. } \
  293. return 0; \
  294. } \
  295. DEFINE_STATIC_CALL(tp_func_##_name, __traceiter_##_name);
  296. #define DEFINE_TRACE(name, proto, args) \
  297. DEFINE_TRACE_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args));
  298. #define EXPORT_TRACEPOINT_SYMBOL_GPL(name) \
  299. EXPORT_SYMBOL_GPL(__tracepoint_##name); \
  300. EXPORT_SYMBOL_GPL(__traceiter_##name); \
  301. EXPORT_STATIC_CALL_GPL(tp_func_##name)
  302. #define EXPORT_TRACEPOINT_SYMBOL(name) \
  303. EXPORT_SYMBOL(__tracepoint_##name); \
  304. EXPORT_SYMBOL(__traceiter_##name); \
  305. EXPORT_STATIC_CALL(tp_func_##name)
  306. #else /* !TRACEPOINTS_ENABLED */
  307. #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \
  308. static inline void trace_##name(proto) \
  309. { } \
  310. static inline void trace_##name##_rcuidle(proto) \
  311. { } \
  312. static inline int \
  313. register_trace_##name(void (*probe)(data_proto), \
  314. void *data) \
  315. { \
  316. return -ENOSYS; \
  317. } \
  318. static inline int \
  319. unregister_trace_##name(void (*probe)(data_proto), \
  320. void *data) \
  321. { \
  322. return -ENOSYS; \
  323. } \
  324. static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \
  325. { \
  326. } \
  327. static inline bool \
  328. trace_##name##_enabled(void) \
  329. { \
  330. return false; \
  331. }
  332. #define DEFINE_TRACE_FN(name, reg, unreg, proto, args)
  333. #define DEFINE_TRACE(name, proto, args)
  334. #define EXPORT_TRACEPOINT_SYMBOL_GPL(name)
  335. #define EXPORT_TRACEPOINT_SYMBOL(name)
  336. #endif /* TRACEPOINTS_ENABLED */
  337. #ifdef CONFIG_TRACING
  338. /**
  339. * tracepoint_string - register constant persistent string to trace system
  340. * @str - a constant persistent string that will be referenced in tracepoints
  341. *
  342. * If constant strings are being used in tracepoints, it is faster and
  343. * more efficient to just save the pointer to the string and reference
  344. * that with a printf "%s" instead of saving the string in the ring buffer
  345. * and wasting space and time.
  346. *
  347. * The problem with the above approach is that userspace tools that read
  348. * the binary output of the trace buffers do not have access to the string.
  349. * Instead they just show the address of the string which is not very
  350. * useful to users.
  351. *
  352. * With tracepoint_string(), the string will be registered to the tracing
  353. * system and exported to userspace via the debugfs/tracing/printk_formats
  354. * file that maps the string address to the string text. This way userspace
  355. * tools that read the binary buffers have a way to map the pointers to
  356. * the ASCII strings they represent.
  357. *
  358. * The @str used must be a constant string and persistent as it would not
  359. * make sense to show a string that no longer exists. But it is still fine
  360. * to be used with modules, because when modules are unloaded, if they
  361. * had tracepoints, the ring buffers are cleared too. As long as the string
  362. * does not change during the life of the module, it is fine to use
  363. * tracepoint_string() within a module.
  364. */
  365. #define tracepoint_string(str) \
  366. ({ \
  367. static const char *___tp_str __tracepoint_string = str; \
  368. ___tp_str; \
  369. })
  370. #define __tracepoint_string __used __section("__tracepoint_str")
  371. #else
  372. /*
  373. * tracepoint_string() is used to save the string address for userspace
  374. * tracing tools. When tracing isn't configured, there's no need to save
  375. * anything.
  376. */
  377. # define tracepoint_string(str) str
  378. # define __tracepoint_string
  379. #endif
  380. #define DECLARE_TRACE(name, proto, args) \
  381. __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
  382. cpu_online(raw_smp_processor_id()), \
  383. PARAMS(void *__data, proto))
  384. #define DECLARE_TRACE_CONDITION(name, proto, args, cond) \
  385. __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
  386. cpu_online(raw_smp_processor_id()) && (PARAMS(cond)), \
  387. PARAMS(void *__data, proto))
  388. #define TRACE_EVENT_FLAGS(event, flag)
  389. #define TRACE_EVENT_PERF_PERM(event, expr...)
  390. #endif /* DECLARE_TRACE */
  391. #ifndef TRACE_EVENT
  392. /*
  393. * For use with the TRACE_EVENT macro:
  394. *
  395. * We define a tracepoint, its arguments, its printk format
  396. * and its 'fast binary record' layout.
  397. *
  398. * Firstly, name your tracepoint via TRACE_EVENT(name : the
  399. * 'subsystem_event' notation is fine.
  400. *
  401. * Think about this whole construct as the
  402. * 'trace_sched_switch() function' from now on.
  403. *
  404. *
  405. * TRACE_EVENT(sched_switch,
  406. *
  407. * *
  408. * * A function has a regular function arguments
  409. * * prototype, declare it via TP_PROTO():
  410. * *
  411. *
  412. * TP_PROTO(struct rq *rq, struct task_struct *prev,
  413. * struct task_struct *next),
  414. *
  415. * *
  416. * * Define the call signature of the 'function'.
  417. * * (Design sidenote: we use this instead of a
  418. * * TP_PROTO1/TP_PROTO2/TP_PROTO3 ugliness.)
  419. * *
  420. *
  421. * TP_ARGS(rq, prev, next),
  422. *
  423. * *
  424. * * Fast binary tracing: define the trace record via
  425. * * TP_STRUCT__entry(). You can think about it like a
  426. * * regular C structure local variable definition.
  427. * *
  428. * * This is how the trace record is structured and will
  429. * * be saved into the ring buffer. These are the fields
  430. * * that will be exposed to user-space in
  431. * * /sys/kernel/debug/tracing/events/<*>/format.
  432. * *
  433. * * The declared 'local variable' is called '__entry'
  434. * *
  435. * * __field(pid_t, prev_pid) is equivalent to a standard declaration:
  436. * *
  437. * * pid_t prev_pid;
  438. * *
  439. * * __array(char, prev_comm, TASK_COMM_LEN) is equivalent to:
  440. * *
  441. * * char prev_comm[TASK_COMM_LEN];
  442. * *
  443. *
  444. * TP_STRUCT__entry(
  445. * __array( char, prev_comm, TASK_COMM_LEN )
  446. * __field( pid_t, prev_pid )
  447. * __field( int, prev_prio )
  448. * __array( char, next_comm, TASK_COMM_LEN )
  449. * __field( pid_t, next_pid )
  450. * __field( int, next_prio )
  451. * ),
  452. *
  453. * *
  454. * * Assign the entry into the trace record, by embedding
  455. * * a full C statement block into TP_fast_assign(). You
  456. * * can refer to the trace record as '__entry' -
  457. * * otherwise you can put arbitrary C code in here.
  458. * *
  459. * * Note: this C code will execute every time a trace event
  460. * * happens, on an active tracepoint.
  461. * *
  462. *
  463. * TP_fast_assign(
  464. * memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN);
  465. * __entry->prev_pid = prev->pid;
  466. * __entry->prev_prio = prev->prio;
  467. * memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN);
  468. * __entry->next_pid = next->pid;
  469. * __entry->next_prio = next->prio;
  470. * ),
  471. *
  472. * *
  473. * * Formatted output of a trace record via TP_printk().
  474. * * This is how the tracepoint will appear under ftrace
  475. * * plugins that make use of this tracepoint.
  476. * *
  477. * * (raw-binary tracing wont actually perform this step.)
  478. * *
  479. *
  480. * TP_printk("task %s:%d [%d] ==> %s:%d [%d]",
  481. * __entry->prev_comm, __entry->prev_pid, __entry->prev_prio,
  482. * __entry->next_comm, __entry->next_pid, __entry->next_prio),
  483. *
  484. * );
  485. *
  486. * This macro construct is thus used for the regular printk format
  487. * tracing setup, it is used to construct a function pointer based
  488. * tracepoint callback (this is used by programmatic plugins and
  489. * can also by used by generic instrumentation like SystemTap), and
  490. * it is also used to expose a structured trace record in
  491. * /sys/kernel/debug/tracing/events/.
  492. *
  493. * A set of (un)registration functions can be passed to the variant
  494. * TRACE_EVENT_FN to perform any (un)registration work.
  495. */
  496. #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print)
  497. #define DEFINE_EVENT(template, name, proto, args) \
  498. DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  499. #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg)\
  500. DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  501. #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
  502. DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  503. #define DEFINE_EVENT_CONDITION(template, name, proto, \
  504. args, cond) \
  505. DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
  506. PARAMS(args), PARAMS(cond))
  507. #define TRACE_EVENT(name, proto, args, struct, assign, print) \
  508. DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  509. #define TRACE_EVENT_FN(name, proto, args, struct, \
  510. assign, print, reg, unreg) \
  511. DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  512. #define TRACE_EVENT_FN_COND(name, proto, args, cond, struct, \
  513. assign, print, reg, unreg) \
  514. DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
  515. PARAMS(args), PARAMS(cond))
  516. #define TRACE_EVENT_CONDITION(name, proto, args, cond, \
  517. struct, assign, print) \
  518. DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
  519. PARAMS(args), PARAMS(cond))
  520. #define TRACE_EVENT_FLAGS(event, flag)
  521. #define TRACE_EVENT_PERF_PERM(event, expr...)
  522. #define DECLARE_EVENT_NOP(name, proto, args) \
  523. static inline void trace_##name(proto) \
  524. { } \
  525. static inline bool trace_##name##_enabled(void) \
  526. { \
  527. return false; \
  528. }
  529. #define TRACE_EVENT_NOP(name, proto, args, struct, assign, print) \
  530. DECLARE_EVENT_NOP(name, PARAMS(proto), PARAMS(args))
  531. #define DECLARE_EVENT_CLASS_NOP(name, proto, args, tstruct, assign, print)
  532. #define DEFINE_EVENT_NOP(template, name, proto, args) \
  533. DECLARE_EVENT_NOP(name, PARAMS(proto), PARAMS(args))
  534. #endif /* ifdef TRACE_EVENT (see note above) */