Skip to content

Commit b41db13

Browse files
metuxrostedt
authored andcommitted
ftrace: Use BIT() macro
It's cleaner to use the BIT() macro instead of raw shift operation. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]> [ Added BIT() for bits 16 and 17 ] Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent eb01fed commit b41db13

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

include/linux/ftrace.h

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,24 @@ ftrace_func_t ftrace_ops_get_func(struct ftrace_ops *ops);
149149
* (internal ftrace only, should not be used by others)
150150
*/
151151
enum {
152-
FTRACE_OPS_FL_ENABLED = 1 << 0,
153-
FTRACE_OPS_FL_DYNAMIC = 1 << 1,
154-
FTRACE_OPS_FL_SAVE_REGS = 1 << 2,
155-
FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = 1 << 3,
156-
FTRACE_OPS_FL_RECURSION_SAFE = 1 << 4,
157-
FTRACE_OPS_FL_STUB = 1 << 5,
158-
FTRACE_OPS_FL_INITIALIZED = 1 << 6,
159-
FTRACE_OPS_FL_DELETED = 1 << 7,
160-
FTRACE_OPS_FL_ADDING = 1 << 8,
161-
FTRACE_OPS_FL_REMOVING = 1 << 9,
162-
FTRACE_OPS_FL_MODIFYING = 1 << 10,
163-
FTRACE_OPS_FL_ALLOC_TRAMP = 1 << 11,
164-
FTRACE_OPS_FL_IPMODIFY = 1 << 12,
165-
FTRACE_OPS_FL_PID = 1 << 13,
166-
FTRACE_OPS_FL_RCU = 1 << 14,
167-
FTRACE_OPS_FL_TRACE_ARRAY = 1 << 15,
168-
FTRACE_OPS_FL_PERMANENT = 1 << 16,
169-
FTRACE_OPS_FL_DIRECT = 1 << 17,
152+
FTRACE_OPS_FL_ENABLED = BIT(0),
153+
FTRACE_OPS_FL_DYNAMIC = BIT(1),
154+
FTRACE_OPS_FL_SAVE_REGS = BIT(2),
155+
FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED = BIT(3),
156+
FTRACE_OPS_FL_RECURSION_SAFE = BIT(4),
157+
FTRACE_OPS_FL_STUB = BIT(5),
158+
FTRACE_OPS_FL_INITIALIZED = BIT(6),
159+
FTRACE_OPS_FL_DELETED = BIT(7),
160+
FTRACE_OPS_FL_ADDING = BIT(8),
161+
FTRACE_OPS_FL_REMOVING = BIT(9),
162+
FTRACE_OPS_FL_MODIFYING = BIT(10),
163+
FTRACE_OPS_FL_ALLOC_TRAMP = BIT(11),
164+
FTRACE_OPS_FL_IPMODIFY = BIT(12),
165+
FTRACE_OPS_FL_PID = BIT(13),
166+
FTRACE_OPS_FL_RCU = BIT(14),
167+
FTRACE_OPS_FL_TRACE_ARRAY = BIT(15),
168+
FTRACE_OPS_FL_PERMANENT = BIT(16),
169+
FTRACE_OPS_FL_DIRECT = BIT(17),
170170
};
171171

172172
#ifdef CONFIG_DYNAMIC_FTRACE

0 commit comments

Comments
 (0)