rcu.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM rcu
  3. #if !defined(_TRACE_RCU_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _TRACE_RCU_H
  5. #include <linux/tracepoint.h>
  6. /*
  7. * Tracepoint for start/end markers used for utilization calculations.
  8. * By convention, the string is of the following forms:
  9. *
  10. * "Start <activity>" -- Mark the start of the specified activity,
  11. * such as "context switch". Nesting is permitted.
  12. * "End <activity>" -- Mark the end of the specified activity.
  13. *
  14. * An "@" character within "<activity>" is a comment character: Data
  15. * reduction scripts will ignore the "@" and the remainder of the line.
  16. */
  17. TRACE_EVENT(rcu_utilization,
  18. TP_PROTO(char *s),
  19. TP_ARGS(s),
  20. TP_STRUCT__entry(
  21. __field(char *, s)
  22. ),
  23. TP_fast_assign(
  24. __entry->s = s;
  25. ),
  26. TP_printk("%s", __entry->s)
  27. );
  28. #ifdef CONFIG_RCU_TRACE
  29. #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU)
  30. /*
  31. * Tracepoint for grace-period events: starting and ending a grace
  32. * period ("start" and "end", respectively), a CPU noting the start
  33. * of a new grace period or the end of an old grace period ("cpustart"
  34. * and "cpuend", respectively), a CPU passing through a quiescent
  35. * state ("cpuqs"), a CPU coming online or going offline ("cpuonl"
  36. * and "cpuofl", respectively), a CPU being kicked for being too
  37. * long in dyntick-idle mode ("kick"), a CPU accelerating its new
  38. * callbacks to RCU_NEXT_READY_TAIL ("AccReadyCB"), and a CPU
  39. * accelerating its new callbacks to RCU_WAIT_TAIL ("AccWaitCB").
  40. */
  41. TRACE_EVENT(rcu_grace_period,
  42. TP_PROTO(char *rcuname, unsigned long gpnum, char *gpevent),
  43. TP_ARGS(rcuname, gpnum, gpevent),
  44. TP_STRUCT__entry(
  45. __field(char *, rcuname)
  46. __field(unsigned long, gpnum)
  47. __field(char *, gpevent)
  48. ),
  49. TP_fast_assign(
  50. __entry->rcuname = rcuname;
  51. __entry->gpnum = gpnum;
  52. __entry->gpevent = gpevent;
  53. ),
  54. TP_printk("%s %lu %s",
  55. __entry->rcuname, __entry->gpnum, __entry->gpevent)
  56. );
  57. /*
  58. * Tracepoint for grace-period-initialization events. These are
  59. * distinguished by the type of RCU, the new grace-period number, the
  60. * rcu_node structure level, the starting and ending CPU covered by the
  61. * rcu_node structure, and the mask of CPUs that will be waited for.
  62. * All but the type of RCU are extracted from the rcu_node structure.
  63. */
  64. TRACE_EVENT(rcu_grace_period_init,
  65. TP_PROTO(char *rcuname, unsigned long gpnum, u8 level,
  66. int grplo, int grphi, unsigned long qsmask),
  67. TP_ARGS(rcuname, gpnum, level, grplo, grphi, qsmask),
  68. TP_STRUCT__entry(
  69. __field(char *, rcuname)
  70. __field(unsigned long, gpnum)
  71. __field(u8, level)
  72. __field(int, grplo)
  73. __field(int, grphi)
  74. __field(unsigned long, qsmask)
  75. ),
  76. TP_fast_assign(
  77. __entry->rcuname = rcuname;
  78. __entry->gpnum = gpnum;
  79. __entry->level = level;
  80. __entry->grplo = grplo;
  81. __entry->grphi = grphi;
  82. __entry->qsmask = qsmask;
  83. ),
  84. TP_printk("%s %lu %u %d %d %lx",
  85. __entry->rcuname, __entry->gpnum, __entry->level,
  86. __entry->grplo, __entry->grphi, __entry->qsmask)
  87. );
  88. /*
  89. * Tracepoint for tasks blocking within preemptible-RCU read-side
  90. * critical sections. Track the type of RCU (which one day might
  91. * include SRCU), the grace-period number that the task is blocking
  92. * (the current or the next), and the task's PID.
  93. */
  94. TRACE_EVENT(rcu_preempt_task,
  95. TP_PROTO(char *rcuname, int pid, unsigned long gpnum),
  96. TP_ARGS(rcuname, pid, gpnum),
  97. TP_STRUCT__entry(
  98. __field(char *, rcuname)
  99. __field(unsigned long, gpnum)
  100. __field(int, pid)
  101. ),
  102. TP_fast_assign(
  103. __entry->rcuname = rcuname;
  104. __entry->gpnum = gpnum;
  105. __entry->pid = pid;
  106. ),
  107. TP_printk("%s %lu %d",
  108. __entry->rcuname, __entry->gpnum, __entry->pid)
  109. );
  110. /*
  111. * Tracepoint for tasks that blocked within a given preemptible-RCU
  112. * read-side critical section exiting that critical section. Track the
  113. * type of RCU (which one day might include SRCU) and the task's PID.
  114. */
  115. TRACE_EVENT(rcu_unlock_preempted_task,
  116. TP_PROTO(char *rcuname, unsigned long gpnum, int pid),
  117. TP_ARGS(rcuname, gpnum, pid),
  118. TP_STRUCT__entry(
  119. __field(char *, rcuname)
  120. __field(unsigned long, gpnum)
  121. __field(int, pid)
  122. ),
  123. TP_fast_assign(
  124. __entry->rcuname = rcuname;
  125. __entry->gpnum = gpnum;
  126. __entry->pid = pid;
  127. ),
  128. TP_printk("%s %lu %d", __entry->rcuname, __entry->gpnum, __entry->pid)
  129. );
  130. /*
  131. * Tracepoint for quiescent-state-reporting events. These are
  132. * distinguished by the type of RCU, the grace-period number, the
  133. * mask of quiescent lower-level entities, the rcu_node structure level,
  134. * the starting and ending CPU covered by the rcu_node structure, and
  135. * whether there are any blocked tasks blocking the current grace period.
  136. * All but the type of RCU are extracted from the rcu_node structure.
  137. */
  138. TRACE_EVENT(rcu_quiescent_state_report,
  139. TP_PROTO(char *rcuname, unsigned long gpnum,
  140. unsigned long mask, unsigned long qsmask,
  141. u8 level, int grplo, int grphi, int gp_tasks),
  142. TP_ARGS(rcuname, gpnum, mask, qsmask, level, grplo, grphi, gp_tasks),
  143. TP_STRUCT__entry(
  144. __field(char *, rcuname)
  145. __field(unsigned long, gpnum)
  146. __field(unsigned long, mask)
  147. __field(unsigned long, qsmask)
  148. __field(u8, level)
  149. __field(int, grplo)
  150. __field(int, grphi)
  151. __field(u8, gp_tasks)
  152. ),
  153. TP_fast_assign(
  154. __entry->rcuname = rcuname;
  155. __entry->gpnum = gpnum;
  156. __entry->mask = mask;
  157. __entry->qsmask = qsmask;
  158. __entry->level = level;
  159. __entry->grplo = grplo;
  160. __entry->grphi = grphi;
  161. __entry->gp_tasks = gp_tasks;
  162. ),
  163. TP_printk("%s %lu %lx>%lx %u %d %d %u",
  164. __entry->rcuname, __entry->gpnum,
  165. __entry->mask, __entry->qsmask, __entry->level,
  166. __entry->grplo, __entry->grphi, __entry->gp_tasks)
  167. );
  168. /*
  169. * Tracepoint for quiescent states detected by force_quiescent_state().
  170. * These trace events include the type of RCU, the grace-period number
  171. * that was blocked by the CPU, the CPU itself, and the type of quiescent
  172. * state, which can be "dti" for dyntick-idle mode, "ofl" for CPU offline,
  173. * or "kick" when kicking a CPU that has been in dyntick-idle mode for
  174. * too long.
  175. */
  176. TRACE_EVENT(rcu_fqs,
  177. TP_PROTO(char *rcuname, unsigned long gpnum, int cpu, char *qsevent),
  178. TP_ARGS(rcuname, gpnum, cpu, qsevent),
  179. TP_STRUCT__entry(
  180. __field(char *, rcuname)
  181. __field(unsigned long, gpnum)
  182. __field(int, cpu)
  183. __field(char *, qsevent)
  184. ),
  185. TP_fast_assign(
  186. __entry->rcuname = rcuname;
  187. __entry->gpnum = gpnum;
  188. __entry->cpu = cpu;
  189. __entry->qsevent = qsevent;
  190. ),
  191. TP_printk("%s %lu %d %s",
  192. __entry->rcuname, __entry->gpnum,
  193. __entry->cpu, __entry->qsevent)
  194. );
  195. #endif /* #if defined(CONFIG_TREE_RCU) || defined(CONFIG_TREE_PREEMPT_RCU) */
  196. /*
  197. * Tracepoint for dyntick-idle entry/exit events. These take a string
  198. * as argument: "Start" for entering dyntick-idle mode, "End" for
  199. * leaving it, "--=" for events moving towards idle, and "++=" for events
  200. * moving away from idle. "Error on entry: not idle task" and "Error on
  201. * exit: not idle task" indicate that a non-idle task is erroneously
  202. * toying with the idle loop.
  203. *
  204. * These events also take a pair of numbers, which indicate the nesting
  205. * depth before and after the event of interest. Note that task-related
  206. * events use the upper bits of each number, while interrupt-related
  207. * events use the lower bits.
  208. */
  209. TRACE_EVENT(rcu_dyntick,
  210. TP_PROTO(char *polarity, long long oldnesting, long long newnesting),
  211. TP_ARGS(polarity, oldnesting, newnesting),
  212. TP_STRUCT__entry(
  213. __field(char *, polarity)
  214. __field(long long, oldnesting)
  215. __field(long long, newnesting)
  216. ),
  217. TP_fast_assign(
  218. __entry->polarity = polarity;
  219. __entry->oldnesting = oldnesting;
  220. __entry->newnesting = newnesting;
  221. ),
  222. TP_printk("%s %llx %llx", __entry->polarity,
  223. __entry->oldnesting, __entry->newnesting)
  224. );
  225. /*
  226. * Tracepoint for RCU preparation for idle, the goal being to get RCU
  227. * processing done so that the current CPU can shut off its scheduling
  228. * clock and enter dyntick-idle mode. One way to accomplish this is
  229. * to drain all RCU callbacks from this CPU, and the other is to have
  230. * done everything RCU requires for the current grace period. In this
  231. * latter case, the CPU will be awakened at the end of the current grace
  232. * period in order to process the remainder of its callbacks.
  233. *
  234. * These tracepoints take a string as argument:
  235. *
  236. * "No callbacks": Nothing to do, no callbacks on this CPU.
  237. * "In holdoff": Nothing to do, holding off after unsuccessful attempt.
  238. * "Begin holdoff": Attempt failed, don't retry until next jiffy.
  239. * "Dyntick with callbacks": Entering dyntick-idle despite callbacks.
  240. * "Dyntick with lazy callbacks": Entering dyntick-idle w/lazy callbacks.
  241. * "More callbacks": Still more callbacks, try again to clear them out.
  242. * "Callbacks drained": All callbacks processed, off to dyntick idle!
  243. * "Timer": Timer fired to cause CPU to continue processing callbacks.
  244. * "Demigrate": Timer fired on wrong CPU, woke up correct CPU.
  245. * "Cleanup after idle": Idle exited, timer canceled.
  246. */
  247. TRACE_EVENT(rcu_prep_idle,
  248. TP_PROTO(char *reason),
  249. TP_ARGS(reason),
  250. TP_STRUCT__entry(
  251. __field(char *, reason)
  252. ),
  253. TP_fast_assign(
  254. __entry->reason = reason;
  255. ),
  256. TP_printk("%s", __entry->reason)
  257. );
  258. /*
  259. * Tracepoint for the registration of a single RCU callback function.
  260. * The first argument is the type of RCU, the second argument is
  261. * a pointer to the RCU callback itself, the third element is the
  262. * number of lazy callbacks queued, and the fourth element is the
  263. * total number of callbacks queued.
  264. */
  265. TRACE_EVENT(rcu_callback,
  266. TP_PROTO(char *rcuname, struct rcu_head *rhp, long qlen_lazy,
  267. long qlen),
  268. TP_ARGS(rcuname, rhp, qlen_lazy, qlen),
  269. TP_STRUCT__entry(
  270. __field(char *, rcuname)
  271. __field(void *, rhp)
  272. __field(void *, func)
  273. __field(long, qlen_lazy)
  274. __field(long, qlen)
  275. ),
  276. TP_fast_assign(
  277. __entry->rcuname = rcuname;
  278. __entry->rhp = rhp;
  279. __entry->func = rhp->func;
  280. __entry->qlen_lazy = qlen_lazy;
  281. __entry->qlen = qlen;
  282. ),
  283. TP_printk("%s rhp=%p func=%pf %ld/%ld",
  284. __entry->rcuname, __entry->rhp, __entry->func,
  285. __entry->qlen_lazy, __entry->qlen)
  286. );
  287. /*
  288. * Tracepoint for the registration of a single RCU callback of the special
  289. * kfree() form. The first argument is the RCU type, the second argument
  290. * is a pointer to the RCU callback, the third argument is the offset
  291. * of the callback within the enclosing RCU-protected data structure,
  292. * the fourth argument is the number of lazy callbacks queued, and the
  293. * fifth argument is the total number of callbacks queued.
  294. */
  295. TRACE_EVENT(rcu_kfree_callback,
  296. TP_PROTO(char *rcuname, struct rcu_head *rhp, unsigned long offset,
  297. long qlen_lazy, long qlen),
  298. TP_ARGS(rcuname, rhp, offset, qlen_lazy, qlen),
  299. TP_STRUCT__entry(
  300. __field(char *, rcuname)
  301. __field(void *, rhp)
  302. __field(unsigned long, offset)
  303. __field(long, qlen_lazy)
  304. __field(long, qlen)
  305. ),
  306. TP_fast_assign(
  307. __entry->rcuname = rcuname;
  308. __entry->rhp = rhp;
  309. __entry->offset = offset;
  310. __entry->qlen_lazy = qlen_lazy;
  311. __entry->qlen = qlen;
  312. ),
  313. TP_printk("%s rhp=%p func=%ld %ld/%ld",
  314. __entry->rcuname, __entry->rhp, __entry->offset,
  315. __entry->qlen_lazy, __entry->qlen)
  316. );
  317. /*
  318. * Tracepoint for marking the beginning rcu_do_batch, performed to start
  319. * RCU callback invocation. The first argument is the RCU flavor,
  320. * the second is the number of lazy callbacks queued, the third is
  321. * the total number of callbacks queued, and the fourth argument is
  322. * the current RCU-callback batch limit.
  323. */
  324. TRACE_EVENT(rcu_batch_start,
  325. TP_PROTO(char *rcuname, long qlen_lazy, long qlen, long blimit),
  326. TP_ARGS(rcuname, qlen_lazy, qlen, blimit),
  327. TP_STRUCT__entry(
  328. __field(char *, rcuname)
  329. __field(long, qlen_lazy)
  330. __field(long, qlen)
  331. __field(long, blimit)
  332. ),
  333. TP_fast_assign(
  334. __entry->rcuname = rcuname;
  335. __entry->qlen_lazy = qlen_lazy;
  336. __entry->qlen = qlen;
  337. __entry->blimit = blimit;
  338. ),
  339. TP_printk("%s CBs=%ld/%ld bl=%ld",
  340. __entry->rcuname, __entry->qlen_lazy, __entry->qlen,
  341. __entry->blimit)
  342. );
  343. /*
  344. * Tracepoint for the invocation of a single RCU callback function.
  345. * The first argument is the type of RCU, and the second argument is
  346. * a pointer to the RCU callback itself.
  347. */
  348. TRACE_EVENT(rcu_invoke_callback,
  349. TP_PROTO(char *rcuname, struct rcu_head *rhp),
  350. TP_ARGS(rcuname, rhp),
  351. TP_STRUCT__entry(
  352. __field(char *, rcuname)
  353. __field(void *, rhp)
  354. __field(void *, func)
  355. ),
  356. TP_fast_assign(
  357. __entry->rcuname = rcuname;
  358. __entry->rhp = rhp;
  359. __entry->func = rhp->func;
  360. ),
  361. TP_printk("%s rhp=%p func=%pf",
  362. __entry->rcuname, __entry->rhp, __entry->func)
  363. );
  364. /*
  365. * Tracepoint for the invocation of a single RCU callback of the special
  366. * kfree() form. The first argument is the RCU flavor, the second
  367. * argument is a pointer to the RCU callback, and the third argument
  368. * is the offset of the callback within the enclosing RCU-protected
  369. * data structure.
  370. */
  371. TRACE_EVENT(rcu_invoke_kfree_callback,
  372. TP_PROTO(char *rcuname, struct rcu_head *rhp, unsigned long offset),
  373. TP_ARGS(rcuname, rhp, offset),
  374. TP_STRUCT__entry(
  375. __field(char *, rcuname)
  376. __field(void *, rhp)
  377. __field(unsigned long, offset)
  378. ),
  379. TP_fast_assign(
  380. __entry->rcuname = rcuname;
  381. __entry->rhp = rhp;
  382. __entry->offset = offset;
  383. ),
  384. TP_printk("%s rhp=%p func=%ld",
  385. __entry->rcuname, __entry->rhp, __entry->offset)
  386. );
  387. /*
  388. * Tracepoint for exiting rcu_do_batch after RCU callbacks have been
  389. * invoked. The first argument is the name of the RCU flavor,
  390. * the second argument is number of callbacks actually invoked,
  391. * the third argument (cb) is whether or not any of the callbacks that
  392. * were ready to invoke at the beginning of this batch are still
  393. * queued, the fourth argument (nr) is the return value of need_resched(),
  394. * the fifth argument (iit) is 1 if the current task is the idle task,
  395. * and the sixth argument (risk) is the return value from
  396. * rcu_is_callbacks_kthread().
  397. */
  398. TRACE_EVENT(rcu_batch_end,
  399. TP_PROTO(char *rcuname, int callbacks_invoked,
  400. bool cb, bool nr, bool iit, bool risk),
  401. TP_ARGS(rcuname, callbacks_invoked, cb, nr, iit, risk),
  402. TP_STRUCT__entry(
  403. __field(char *, rcuname)
  404. __field(int, callbacks_invoked)
  405. __field(bool, cb)
  406. __field(bool, nr)
  407. __field(bool, iit)
  408. __field(bool, risk)
  409. ),
  410. TP_fast_assign(
  411. __entry->rcuname = rcuname;
  412. __entry->callbacks_invoked = callbacks_invoked;
  413. __entry->cb = cb;
  414. __entry->nr = nr;
  415. __entry->iit = iit;
  416. __entry->risk = risk;
  417. ),
  418. TP_printk("%s CBs-invoked=%d idle=%c%c%c%c",
  419. __entry->rcuname, __entry->callbacks_invoked,
  420. __entry->cb ? 'C' : '.',
  421. __entry->nr ? 'S' : '.',
  422. __entry->iit ? 'I' : '.',
  423. __entry->risk ? 'R' : '.')
  424. );
  425. /*
  426. * Tracepoint for rcutorture readers. The first argument is the name
  427. * of the RCU flavor from rcutorture's viewpoint and the second argument
  428. * is the callback address.
  429. */
  430. TRACE_EVENT(rcu_torture_read,
  431. TP_PROTO(char *rcutorturename, struct rcu_head *rhp,
  432. unsigned long secs, unsigned long c_old, unsigned long c),
  433. TP_ARGS(rcutorturename, rhp, secs, c_old, c),
  434. TP_STRUCT__entry(
  435. __field(char *, rcutorturename)
  436. __field(struct rcu_head *, rhp)
  437. __field(unsigned long, secs)
  438. __field(unsigned long, c_old)
  439. __field(unsigned long, c)
  440. ),
  441. TP_fast_assign(
  442. __entry->rcutorturename = rcutorturename;
  443. __entry->rhp = rhp;
  444. __entry->secs = secs;
  445. __entry->c_old = c_old;
  446. __entry->c = c;
  447. ),
  448. TP_printk("%s torture read %p %luus c: %lu %lu",
  449. __entry->rcutorturename, __entry->rhp,
  450. __entry->secs, __entry->c_old, __entry->c)
  451. );
  452. /*
  453. * Tracepoint for _rcu_barrier() execution. The string "s" describes
  454. * the _rcu_barrier phase:
  455. * "Begin": rcu_barrier_callback() started.
  456. * "Check": rcu_barrier_callback() checking for piggybacking.
  457. * "EarlyExit": rcu_barrier_callback() piggybacked, thus early exit.
  458. * "Inc1": rcu_barrier_callback() piggyback check counter incremented.
  459. * "Offline": rcu_barrier_callback() found offline CPU
  460. * "OnlineNoCB": rcu_barrier_callback() found online no-CBs CPU.
  461. * "OnlineQ": rcu_barrier_callback() found online CPU with callbacks.
  462. * "OnlineNQ": rcu_barrier_callback() found online CPU, no callbacks.
  463. * "IRQ": An rcu_barrier_callback() callback posted on remote CPU.
  464. * "CB": An rcu_barrier_callback() invoked a callback, not the last.
  465. * "LastCB": An rcu_barrier_callback() invoked the last callback.
  466. * "Inc2": rcu_barrier_callback() piggyback check counter incremented.
  467. * The "cpu" argument is the CPU or -1 if meaningless, the "cnt" argument
  468. * is the count of remaining callbacks, and "done" is the piggybacking count.
  469. */
  470. TRACE_EVENT(rcu_barrier,
  471. TP_PROTO(char *rcuname, char *s, int cpu, int cnt, unsigned long done),
  472. TP_ARGS(rcuname, s, cpu, cnt, done),
  473. TP_STRUCT__entry(
  474. __field(char *, rcuname)
  475. __field(char *, s)
  476. __field(int, cpu)
  477. __field(int, cnt)
  478. __field(unsigned long, done)
  479. ),
  480. TP_fast_assign(
  481. __entry->rcuname = rcuname;
  482. __entry->s = s;
  483. __entry->cpu = cpu;
  484. __entry->cnt = cnt;
  485. __entry->done = done;
  486. ),
  487. TP_printk("%s %s cpu %d remaining %d # %lu",
  488. __entry->rcuname, __entry->s, __entry->cpu, __entry->cnt,
  489. __entry->done)
  490. );
  491. #else /* #ifdef CONFIG_RCU_TRACE */
  492. #define trace_rcu_grace_period(rcuname, gpnum, gpevent) do { } while (0)
  493. #define trace_rcu_grace_period_init(rcuname, gpnum, level, grplo, grphi, \
  494. qsmask) do { } while (0)
  495. #define trace_rcu_preempt_task(rcuname, pid, gpnum) do { } while (0)
  496. #define trace_rcu_unlock_preempted_task(rcuname, gpnum, pid) do { } while (0)
  497. #define trace_rcu_quiescent_state_report(rcuname, gpnum, mask, qsmask, level, \
  498. grplo, grphi, gp_tasks) do { } \
  499. while (0)
  500. #define trace_rcu_fqs(rcuname, gpnum, cpu, qsevent) do { } while (0)
  501. #define trace_rcu_dyntick(polarity, oldnesting, newnesting) do { } while (0)
  502. #define trace_rcu_prep_idle(reason) do { } while (0)
  503. #define trace_rcu_callback(rcuname, rhp, qlen_lazy, qlen) do { } while (0)
  504. #define trace_rcu_kfree_callback(rcuname, rhp, offset, qlen_lazy, qlen) \
  505. do { } while (0)
  506. #define trace_rcu_batch_start(rcuname, qlen_lazy, qlen, blimit) \
  507. do { } while (0)
  508. #define trace_rcu_invoke_callback(rcuname, rhp) do { } while (0)
  509. #define trace_rcu_invoke_kfree_callback(rcuname, rhp, offset) do { } while (0)
  510. #define trace_rcu_batch_end(rcuname, callbacks_invoked, cb, nr, iit, risk) \
  511. do { } while (0)
  512. #define trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \
  513. do { } while (0)
  514. #define trace_rcu_barrier(name, s, cpu, cnt, done) do { } while (0)
  515. #endif /* #else #ifdef CONFIG_RCU_TRACE */
  516. #endif /* _TRACE_RCU_H */
  517. /* This part must be outside protection */
  518. #include <trace/define_trace.h>