tracing/ksym_tracer: support quick clear for ksym_trace_filter -- v2
commit75e33751ca8bbb72dd6f1a74d2810ddc8cbe4bdf
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 23 Jul 2009 04:01:22 +0000 (23 12:01 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 24 Jul 2009 00:54:40 +0000 (23 20:54 -0400)
tree35402f5e41b3e823ceed21ee535045f39cd5465a
parent8e068542a8d9efec55126284d2f5cb32f003d507
tracing/ksym_tracer: support quick clear for ksym_trace_filter -- v2

It's rather boring to clear symbol one by one in ksym_trace_filter
file, so, this patch will let ksym_trace_filter file support quickly
clear all break points. We can write "0" to this file and it will clear
all symbols

for example:
 # cat ksym_trace_filter
 ksym_filter_head:rw-
 global_trace:rw-
 # echo 0 > ksym_trace_filter
 # cat ksym_trace_filter
 #

Changelog v1->v2:
Add other ways to clear all breakpoints by writing NULL or "*:---"
to ksym_trace_filter file base on K.Prasad's suggestion

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
LKML-Reference: <4A67E092.3080202@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_ksym.c