ftrace.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. /*
  2. * Ftrace header. For implementation details beyond the random comments
  3. * scattered below, see: Documentation/trace/ftrace-design.txt
  4. */
  5. #ifndef _LINUX_FTRACE_H
  6. #define _LINUX_FTRACE_H
  7. #include <linux/trace_clock.h>
  8. #include <linux/kallsyms.h>
  9. #include <linux/linkage.h>
  10. #include <linux/bitops.h>
  11. #include <linux/ktime.h>
  12. #include <linux/sched.h>
  13. #include <linux/types.h>
  14. #include <linux/init.h>
  15. #include <linux/fs.h>
  16. #include <asm/ftrace.h>
  17. struct module;
  18. struct ftrace_hash;
  19. #ifdef CONFIG_FUNCTION_TRACER
  20. extern int ftrace_enabled;
  21. extern int
  22. ftrace_enable_sysctl(struct ctl_table *table, int write,
  23. void __user *buffer, size_t *lenp,
  24. loff_t *ppos);
  25. typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip);
  26. enum {
  27. FTRACE_OPS_FL_ENABLED = 1 << 0,
  28. FTRACE_OPS_FL_GLOBAL = 1 << 1,
  29. FTRACE_OPS_FL_DYNAMIC = 1 << 2,
  30. };
  31. struct ftrace_ops {
  32. ftrace_func_t func;
  33. struct ftrace_ops *next;
  34. unsigned long flags;
  35. #ifdef CONFIG_DYNAMIC_FTRACE
  36. struct ftrace_hash *notrace_hash;
  37. struct ftrace_hash *filter_hash;
  38. #endif
  39. };
  40. extern int function_trace_stop;
  41. /*
  42. * Type of the current tracing.
  43. */
  44. enum ftrace_tracing_type_t {
  45. FTRACE_TYPE_ENTER = 0, /* Hook the call of the function */
  46. FTRACE_TYPE_RETURN, /* Hook the return of the function */
  47. };
  48. /* Current tracing type, default is FTRACE_TYPE_ENTER */
  49. extern enum ftrace_tracing_type_t ftrace_tracing_type;
  50. /**
  51. * ftrace_stop - stop function tracer.
  52. *
  53. * A quick way to stop the function tracer. Note this an on off switch,
  54. * it is not something that is recursive like preempt_disable.
  55. * This does not disable the calling of mcount, it only stops the
  56. * calling of functions from mcount.
  57. */
  58. static inline void ftrace_stop(void)
  59. {
  60. function_trace_stop = 1;
  61. }
  62. /**
  63. * ftrace_start - start the function tracer.
  64. *
  65. * This function is the inverse of ftrace_stop. This does not enable
  66. * the function tracing if the function tracer is disabled. This only
  67. * sets the function tracer flag to continue calling the functions
  68. * from mcount.
  69. */
  70. static inline void ftrace_start(void)
  71. {
  72. function_trace_stop = 0;
  73. }
  74. /*
  75. * The ftrace_ops must be a static and should also
  76. * be read_mostly. These functions do modify read_mostly variables
  77. * so use them sparely. Never free an ftrace_op or modify the
  78. * next pointer after it has been registered. Even after unregistering
  79. * it, the next pointer may still be used internally.
  80. */
  81. int register_ftrace_function(struct ftrace_ops *ops);
  82. int unregister_ftrace_function(struct ftrace_ops *ops);
  83. void clear_ftrace_function(void);
  84. extern void ftrace_stub(unsigned long a0, unsigned long a1);
  85. #else /* !CONFIG_FUNCTION_TRACER */
  86. /*
  87. * (un)register_ftrace_function must be a macro since the ops parameter
  88. * must not be evaluated.
  89. */
  90. #define register_ftrace_function(ops) ({ 0; })
  91. #define unregister_ftrace_function(ops) ({ 0; })
  92. static inline void clear_ftrace_function(void) { }
  93. static inline void ftrace_kill(void) { }
  94. static inline void ftrace_stop(void) { }
  95. static inline void ftrace_start(void) { }
  96. #endif /* CONFIG_FUNCTION_TRACER */
  97. #ifdef CONFIG_STACK_TRACER
  98. extern int stack_tracer_enabled;
  99. int
  100. stack_trace_sysctl(struct ctl_table *table, int write,
  101. void __user *buffer, size_t *lenp,
  102. loff_t *ppos);
  103. #endif
  104. struct ftrace_func_command {
  105. struct list_head list;
  106. char *name;
  107. int (*func)(struct ftrace_hash *hash,
  108. char *func, char *cmd,
  109. char *params, int enable);
  110. };
  111. #ifdef CONFIG_DYNAMIC_FTRACE
  112. int ftrace_arch_code_modify_prepare(void);
  113. int ftrace_arch_code_modify_post_process(void);
  114. void ftrace_bug(int err, unsigned long ip);
  115. struct seq_file;
  116. struct ftrace_probe_ops {
  117. void (*func)(unsigned long ip,
  118. unsigned long parent_ip,
  119. void **data);
  120. int (*callback)(unsigned long ip, void **data);
  121. void (*free)(void **data);
  122. int (*print)(struct seq_file *m,
  123. unsigned long ip,
  124. struct ftrace_probe_ops *ops,
  125. void *data);
  126. };
  127. extern int
  128. register_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops,
  129. void *data);
  130. extern void
  131. unregister_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops,
  132. void *data);
  133. extern void
  134. unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops);
  135. extern void unregister_ftrace_function_probe_all(char *glob);
  136. extern int ftrace_text_reserved(void *start, void *end);
  137. enum {
  138. FTRACE_FL_ENABLED = (1 << 30),
  139. };
  140. #define FTRACE_FL_MASK (0x3UL << 30)
  141. #define FTRACE_REF_MAX ((1 << 30) - 1)
  142. struct dyn_ftrace {
  143. union {
  144. unsigned long ip; /* address of mcount call-site */
  145. struct dyn_ftrace *freelist;
  146. };
  147. unsigned long flags;
  148. struct dyn_arch_ftrace arch;
  149. };
  150. int ftrace_force_update(void);
  151. int ftrace_set_filter(struct ftrace_ops *ops, unsigned char *buf,
  152. int len, int reset);
  153. int ftrace_set_notrace(struct ftrace_ops *ops, unsigned char *buf,
  154. int len, int reset);
  155. void ftrace_set_global_filter(unsigned char *buf, int len, int reset);
  156. void ftrace_set_global_notrace(unsigned char *buf, int len, int reset);
  157. int register_ftrace_command(struct ftrace_func_command *cmd);
  158. int unregister_ftrace_command(struct ftrace_func_command *cmd);
  159. enum {
  160. FTRACE_UPDATE_CALLS = (1 << 0),
  161. FTRACE_DISABLE_CALLS = (1 << 1),
  162. FTRACE_UPDATE_TRACE_FUNC = (1 << 2),
  163. FTRACE_START_FUNC_RET = (1 << 3),
  164. FTRACE_STOP_FUNC_RET = (1 << 4),
  165. };
  166. enum {
  167. FTRACE_UPDATE_IGNORE,
  168. FTRACE_UPDATE_MAKE_CALL,
  169. FTRACE_UPDATE_MAKE_NOP,
  170. };
  171. enum {
  172. FTRACE_ITER_FILTER = (1 << 0),
  173. FTRACE_ITER_NOTRACE = (1 << 1),
  174. FTRACE_ITER_PRINTALL = (1 << 2),
  175. FTRACE_ITER_DO_HASH = (1 << 3),
  176. FTRACE_ITER_HASH = (1 << 4),
  177. FTRACE_ITER_ENABLED = (1 << 5),
  178. };
  179. void arch_ftrace_update_code(int command);
  180. struct ftrace_rec_iter;
  181. struct ftrace_rec_iter *ftrace_rec_iter_start(void);
  182. struct ftrace_rec_iter *ftrace_rec_iter_next(struct ftrace_rec_iter *iter);
  183. struct dyn_ftrace *ftrace_rec_iter_record(struct ftrace_rec_iter *iter);
  184. int ftrace_update_record(struct dyn_ftrace *rec, int enable);
  185. int ftrace_test_record(struct dyn_ftrace *rec, int enable);
  186. void ftrace_run_stop_machine(int command);
  187. int ftrace_location(unsigned long ip);
  188. extern ftrace_func_t ftrace_trace_function;
  189. int ftrace_regex_open(struct ftrace_ops *ops, int flag,
  190. struct inode *inode, struct file *file);
  191. ssize_t ftrace_filter_write(struct file *file, const char __user *ubuf,
  192. size_t cnt, loff_t *ppos);
  193. ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf,
  194. size_t cnt, loff_t *ppos);
  195. loff_t ftrace_regex_lseek(struct file *file, loff_t offset, int origin);
  196. int ftrace_regex_release(struct inode *inode, struct file *file);
  197. void __init
  198. ftrace_set_early_filter(struct ftrace_ops *ops, char *buf, int enable);
  199. /* defined in arch */
  200. extern int ftrace_ip_converted(unsigned long ip);
  201. extern int ftrace_dyn_arch_init(void *data);
  202. extern int ftrace_update_ftrace_func(ftrace_func_t func);
  203. extern void ftrace_caller(void);
  204. extern void ftrace_call(void);
  205. extern void mcount_call(void);
  206. #ifndef FTRACE_ADDR
  207. #define FTRACE_ADDR ((unsigned long)ftrace_caller)
  208. #endif
  209. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  210. extern void ftrace_graph_caller(void);
  211. extern int ftrace_enable_ftrace_graph_caller(void);
  212. extern int ftrace_disable_ftrace_graph_caller(void);
  213. #else
  214. static inline int ftrace_enable_ftrace_graph_caller(void) { return 0; }
  215. static inline int ftrace_disable_ftrace_graph_caller(void) { return 0; }
  216. #endif
  217. /**
  218. * ftrace_make_nop - convert code into nop
  219. * @mod: module structure if called by module load initialization
  220. * @rec: the mcount call site record
  221. * @addr: the address that the call site should be calling
  222. *
  223. * This is a very sensitive operation and great care needs
  224. * to be taken by the arch. The operation should carefully
  225. * read the location, check to see if what is read is indeed
  226. * what we expect it to be, and then on success of the compare,
  227. * it should write to the location.
  228. *
  229. * The code segment at @rec->ip should be a caller to @addr
  230. *
  231. * Return must be:
  232. * 0 on success
  233. * -EFAULT on error reading the location
  234. * -EINVAL on a failed compare of the contents
  235. * -EPERM on error writing to the location
  236. * Any other value will be considered a failure.
  237. */
  238. extern int ftrace_make_nop(struct module *mod,
  239. struct dyn_ftrace *rec, unsigned long addr);
  240. /**
  241. * ftrace_make_call - convert a nop call site into a call to addr
  242. * @rec: the mcount call site record
  243. * @addr: the address that the call site should call
  244. *
  245. * This is a very sensitive operation and great care needs
  246. * to be taken by the arch. The operation should carefully
  247. * read the location, check to see if what is read is indeed
  248. * what we expect it to be, and then on success of the compare,
  249. * it should write to the location.
  250. *
  251. * The code segment at @rec->ip should be a nop
  252. *
  253. * Return must be:
  254. * 0 on success
  255. * -EFAULT on error reading the location
  256. * -EINVAL on a failed compare of the contents
  257. * -EPERM on error writing to the location
  258. * Any other value will be considered a failure.
  259. */
  260. extern int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr);
  261. /* May be defined in arch */
  262. extern int ftrace_arch_read_dyn_info(char *buf, int size);
  263. extern int skip_trace(unsigned long ip);
  264. extern void ftrace_disable_daemon(void);
  265. extern void ftrace_enable_daemon(void);
  266. #else
  267. static inline int skip_trace(unsigned long ip) { return 0; }
  268. static inline int ftrace_force_update(void) { return 0; }
  269. static inline void ftrace_set_filter(unsigned char *buf, int len, int reset)
  270. {
  271. }
  272. static inline void ftrace_disable_daemon(void) { }
  273. static inline void ftrace_enable_daemon(void) { }
  274. static inline void ftrace_release_mod(struct module *mod) {}
  275. static inline int register_ftrace_command(struct ftrace_func_command *cmd)
  276. {
  277. return -EINVAL;
  278. }
  279. static inline int unregister_ftrace_command(char *cmd_name)
  280. {
  281. return -EINVAL;
  282. }
  283. static inline int ftrace_text_reserved(void *start, void *end)
  284. {
  285. return 0;
  286. }
  287. /*
  288. * Again users of functions that have ftrace_ops may not
  289. * have them defined when ftrace is not enabled, but these
  290. * functions may still be called. Use a macro instead of inline.
  291. */
  292. #define ftrace_regex_open(ops, flag, inod, file) ({ -ENODEV; })
  293. #define ftrace_set_early_filter(ops, buf, enable) do { } while (0)
  294. static inline ssize_t ftrace_filter_write(struct file *file, const char __user *ubuf,
  295. size_t cnt, loff_t *ppos) { return -ENODEV; }
  296. static inline ssize_t ftrace_notrace_write(struct file *file, const char __user *ubuf,
  297. size_t cnt, loff_t *ppos) { return -ENODEV; }
  298. static inline loff_t ftrace_regex_lseek(struct file *file, loff_t offset, int origin)
  299. {
  300. return -ENODEV;
  301. }
  302. static inline int
  303. ftrace_regex_release(struct inode *inode, struct file *file) { return -ENODEV; }
  304. #endif /* CONFIG_DYNAMIC_FTRACE */
  305. /* totally disable ftrace - can not re-enable after this */
  306. void ftrace_kill(void);
  307. static inline void tracer_disable(void)
  308. {
  309. #ifdef CONFIG_FUNCTION_TRACER
  310. ftrace_enabled = 0;
  311. #endif
  312. }
  313. /*
  314. * Ftrace disable/restore without lock. Some synchronization mechanism
  315. * must be used to prevent ftrace_enabled to be changed between
  316. * disable/restore.
  317. */
  318. static inline int __ftrace_enabled_save(void)
  319. {
  320. #ifdef CONFIG_FUNCTION_TRACER
  321. int saved_ftrace_enabled = ftrace_enabled;
  322. ftrace_enabled = 0;
  323. return saved_ftrace_enabled;
  324. #else
  325. return 0;
  326. #endif
  327. }
  328. static inline void __ftrace_enabled_restore(int enabled)
  329. {
  330. #ifdef CONFIG_FUNCTION_TRACER
  331. ftrace_enabled = enabled;
  332. #endif
  333. }
  334. #ifndef HAVE_ARCH_CALLER_ADDR
  335. # ifdef CONFIG_FRAME_POINTER
  336. # define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
  337. # define CALLER_ADDR1 ((unsigned long)__builtin_return_address(1))
  338. # define CALLER_ADDR2 ((unsigned long)__builtin_return_address(2))
  339. # define CALLER_ADDR3 ((unsigned long)__builtin_return_address(3))
  340. # define CALLER_ADDR4 ((unsigned long)__builtin_return_address(4))
  341. # define CALLER_ADDR5 ((unsigned long)__builtin_return_address(5))
  342. # define CALLER_ADDR6 ((unsigned long)__builtin_return_address(6))
  343. # else
  344. # define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
  345. # define CALLER_ADDR1 0UL
  346. # define CALLER_ADDR2 0UL
  347. # define CALLER_ADDR3 0UL
  348. # define CALLER_ADDR4 0UL
  349. # define CALLER_ADDR5 0UL
  350. # define CALLER_ADDR6 0UL
  351. # endif
  352. #endif /* ifndef HAVE_ARCH_CALLER_ADDR */
  353. #ifdef CONFIG_IRQSOFF_TRACER
  354. extern void time_hardirqs_on(unsigned long a0, unsigned long a1);
  355. extern void time_hardirqs_off(unsigned long a0, unsigned long a1);
  356. #else
  357. static inline void time_hardirqs_on(unsigned long a0, unsigned long a1) { }
  358. static inline void time_hardirqs_off(unsigned long a0, unsigned long a1) { }
  359. #endif
  360. #ifdef CONFIG_PREEMPT_TRACER
  361. extern void trace_preempt_on(unsigned long a0, unsigned long a1);
  362. extern void trace_preempt_off(unsigned long a0, unsigned long a1);
  363. #else
  364. static inline void trace_preempt_on(unsigned long a0, unsigned long a1) { }
  365. static inline void trace_preempt_off(unsigned long a0, unsigned long a1) { }
  366. #endif
  367. #ifdef CONFIG_FTRACE_MCOUNT_RECORD
  368. extern void ftrace_init(void);
  369. #else
  370. static inline void ftrace_init(void) { }
  371. #endif
  372. /*
  373. * Structure that defines an entry function trace.
  374. */
  375. struct ftrace_graph_ent {
  376. unsigned long func; /* Current function */
  377. int depth;
  378. };
  379. /*
  380. * Structure that defines a return function trace.
  381. */
  382. struct ftrace_graph_ret {
  383. unsigned long func; /* Current function */
  384. unsigned long long calltime;
  385. unsigned long long rettime;
  386. /* Number of functions that overran the depth limit for current task */
  387. unsigned long overrun;
  388. int depth;
  389. };
  390. /* Type of the callback handlers for tracing function graph*/
  391. typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *); /* return */
  392. typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */
  393. #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  394. /* for init task */
  395. #define INIT_FTRACE_GRAPH .ret_stack = NULL,
  396. /*
  397. * Stack of return addresses for functions
  398. * of a thread.
  399. * Used in struct thread_info
  400. */
  401. struct ftrace_ret_stack {
  402. unsigned long ret;
  403. unsigned long func;
  404. unsigned long long calltime;
  405. unsigned long long subtime;
  406. unsigned long fp;
  407. };
  408. /*
  409. * Primary handler of a function return.
  410. * It relays on ftrace_return_to_handler.
  411. * Defined in entry_32/64.S
  412. */
  413. extern void return_to_handler(void);
  414. extern int
  415. ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth,
  416. unsigned long frame_pointer);
  417. /*
  418. * Sometimes we don't want to trace a function with the function
  419. * graph tracer but we want them to keep traced by the usual function
  420. * tracer if the function graph tracer is not configured.
  421. */
  422. #define __notrace_funcgraph notrace
  423. /*
  424. * We want to which function is an entrypoint of a hardirq.
  425. * That will help us to put a signal on output.
  426. */
  427. #define __irq_entry __attribute__((__section__(".irqentry.text")))
  428. /* Limits of hardirq entrypoints */
  429. extern char __irqentry_text_start[];
  430. extern char __irqentry_text_end[];
  431. #define FTRACE_RETFUNC_DEPTH 50
  432. #define FTRACE_RETSTACK_ALLOC_SIZE 32
  433. extern int register_ftrace_graph(trace_func_graph_ret_t retfunc,
  434. trace_func_graph_ent_t entryfunc);
  435. extern void ftrace_graph_stop(void);
  436. /* The current handlers in use */
  437. extern trace_func_graph_ret_t ftrace_graph_return;
  438. extern trace_func_graph_ent_t ftrace_graph_entry;
  439. extern void unregister_ftrace_graph(void);
  440. extern void ftrace_graph_init_task(struct task_struct *t);
  441. extern void ftrace_graph_exit_task(struct task_struct *t);
  442. extern void ftrace_graph_init_idle_task(struct task_struct *t, int cpu);
  443. static inline int task_curr_ret_stack(struct task_struct *t)
  444. {
  445. return t->curr_ret_stack;
  446. }
  447. static inline void pause_graph_tracing(void)
  448. {
  449. atomic_inc(&current->tracing_graph_pause);
  450. }
  451. static inline void unpause_graph_tracing(void)
  452. {
  453. atomic_dec(&current->tracing_graph_pause);
  454. }
  455. #else /* !CONFIG_FUNCTION_GRAPH_TRACER */
  456. #define __notrace_funcgraph
  457. #define __irq_entry
  458. #define INIT_FTRACE_GRAPH
  459. static inline void ftrace_graph_init_task(struct task_struct *t) { }
  460. static inline void ftrace_graph_exit_task(struct task_struct *t) { }
  461. static inline void ftrace_graph_init_idle_task(struct task_struct *t, int cpu) { }
  462. static inline int register_ftrace_graph(trace_func_graph_ret_t retfunc,
  463. trace_func_graph_ent_t entryfunc)
  464. {
  465. return -1;
  466. }
  467. static inline void unregister_ftrace_graph(void) { }
  468. static inline int task_curr_ret_stack(struct task_struct *tsk)
  469. {
  470. return -1;
  471. }
  472. static inline void pause_graph_tracing(void) { }
  473. static inline void unpause_graph_tracing(void) { }
  474. #endif /* CONFIG_FUNCTION_GRAPH_TRACER */
  475. #ifdef CONFIG_TRACING
  476. /* flags for current->trace */
  477. enum {
  478. TSK_TRACE_FL_TRACE_BIT = 0,
  479. TSK_TRACE_FL_GRAPH_BIT = 1,
  480. };
  481. enum {
  482. TSK_TRACE_FL_TRACE = 1 << TSK_TRACE_FL_TRACE_BIT,
  483. TSK_TRACE_FL_GRAPH = 1 << TSK_TRACE_FL_GRAPH_BIT,
  484. };
  485. static inline void set_tsk_trace_trace(struct task_struct *tsk)
  486. {
  487. set_bit(TSK_TRACE_FL_TRACE_BIT, &tsk->trace);
  488. }
  489. static inline void clear_tsk_trace_trace(struct task_struct *tsk)
  490. {
  491. clear_bit(TSK_TRACE_FL_TRACE_BIT, &tsk->trace);
  492. }
  493. static inline int test_tsk_trace_trace(struct task_struct *tsk)
  494. {
  495. return tsk->trace & TSK_TRACE_FL_TRACE;
  496. }
  497. static inline void set_tsk_trace_graph(struct task_struct *tsk)
  498. {
  499. set_bit(TSK_TRACE_FL_GRAPH_BIT, &tsk->trace);
  500. }
  501. static inline void clear_tsk_trace_graph(struct task_struct *tsk)
  502. {
  503. clear_bit(TSK_TRACE_FL_GRAPH_BIT, &tsk->trace);
  504. }
  505. static inline int test_tsk_trace_graph(struct task_struct *tsk)
  506. {
  507. return tsk->trace & TSK_TRACE_FL_GRAPH;
  508. }
  509. enum ftrace_dump_mode;
  510. extern enum ftrace_dump_mode ftrace_dump_on_oops;
  511. #ifdef CONFIG_PREEMPT
  512. #define INIT_TRACE_RECURSION .trace_recursion = 0,
  513. #endif
  514. #endif /* CONFIG_TRACING */
  515. #ifndef INIT_TRACE_RECURSION
  516. #define INIT_TRACE_RECURSION
  517. #endif
  518. #ifdef CONFIG_FTRACE_SYSCALLS
  519. unsigned long arch_syscall_addr(int nr);
  520. #endif /* CONFIG_FTRACE_SYSCALLS */
  521. #endif /* _LINUX_FTRACE_H */