aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-12-08 10:00:04 +0100
committerIngo Molnar <[email protected]>2009-12-09 10:32:21 +0100
commit822a6961112f0c9101d3359d8524604c3309ee6c (patch)
treeba66dda1220c6f3f9208b56cb50f716bbf08fa13 /lib/cpu-notifier-error-inject.c
parentec89a06fd4e12301f11ab039ee07d2353a18addc (diff)
tracing/kprobes: Fix field creation's bad error handling
When we define the common event fields in kprobe, we invert the error handling and return immediately in case of success. Then we omit to define specific kprobes fields (ip and nargs), and specific kretprobes fields (func, ret_ip, nargs). And we only define them when we fail to create common fields. The most visible consequence is that we can't create filter for k(ret)probes specific fields. This patch re-invert the success/error handling to fix it. Reported-by: Lai Jiangshan <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Li Zefan <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions