aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 4736a826baf5..660e7c698f3b 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -357,6 +357,7 @@ bool is_ftrace_trampoline(unsigned long addr);
357 * REGS - the record wants the function to save regs 357 * REGS - the record wants the function to save regs
358 * REGS_EN - the function is set up to save regs. 358 * REGS_EN - the function is set up to save regs.
359 * IPMODIFY - the record allows for the IP address to be changed. 359 * IPMODIFY - the record allows for the IP address to be changed.
360 * DISABLED - the record is not ready to be touched yet
360 * 361 *
361 * When a new ftrace_ops is registered and wants a function to save 362 * When a new ftrace_ops is registered and wants a function to save
362 * pt_regs, the rec->flag REGS is set. When the function has been 363 * pt_regs, the rec->flag REGS is set. When the function has been
@@ -371,10 +372,11 @@ enum {
371 FTRACE_FL_TRAMP = (1UL << 28), 372 FTRACE_FL_TRAMP = (1UL << 28),
372 FTRACE_FL_TRAMP_EN = (1UL << 27), 373 FTRACE_FL_TRAMP_EN = (1UL << 27),
373 FTRACE_FL_IPMODIFY = (1UL << 26), 374 FTRACE_FL_IPMODIFY = (1UL << 26),
375 FTRACE_FL_DISABLED = (1UL << 25),
374}; 376};
375 377
376#define FTRACE_REF_MAX_SHIFT 26 378#define FTRACE_REF_MAX_SHIFT 25
377#define FTRACE_FL_BITS 6 379#define FTRACE_FL_BITS 7
378#define FTRACE_FL_MASKED_BITS ((1UL << FTRACE_FL_BITS) - 1) 380#define FTRACE_FL_MASKED_BITS ((1UL << FTRACE_FL_BITS) - 1)
379#define FTRACE_FL_MASK (FTRACE_FL_MASKED_BITS << FTRACE_REF_MAX_SHIFT) 381#define FTRACE_FL_MASK (FTRACE_FL_MASKED_BITS << FTRACE_REF_MAX_SHIFT)
380#define FTRACE_REF_MAX ((1UL << FTRACE_REF_MAX_SHIFT) - 1) 382#define FTRACE_REF_MAX ((1UL << FTRACE_REF_MAX_SHIFT) - 1)