mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 08:00:09 +00:00
tracing: Indicate enabled soft-mode in enable file
Indicate enabled soft-mode event as "1*" in "enable" file for each event, because it can be soft-disabled when disable_event trigger is hit. Link: http://lkml.kernel.org/r/20130509054426.30398.28202.stgit@mhiramat-M0-7522 Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
cce2c8f267
commit
30052170dc
@ -623,6 +623,8 @@ event_enable_read(struct file *filp, char __user *ubuf, size_t cnt,
|
|||||||
if (file->flags & FTRACE_EVENT_FL_ENABLED) {
|
if (file->flags & FTRACE_EVENT_FL_ENABLED) {
|
||||||
if (file->flags & FTRACE_EVENT_FL_SOFT_DISABLED)
|
if (file->flags & FTRACE_EVENT_FL_SOFT_DISABLED)
|
||||||
buf = "0*\n";
|
buf = "0*\n";
|
||||||
|
else if (file->flags & FTRACE_EVENT_FL_SOFT_MODE)
|
||||||
|
buf = "1*\n";
|
||||||
else
|
else
|
||||||
buf = "1\n";
|
buf = "1\n";
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user