You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Steven Rostedt
a8fb260805
perf/tracing: Fix regression of perf losing kprobe events
...
With the addition of the code to shrink the kernel tracepoint
infrastructure, we lost kprobes being traced by perf. The reason
is that I tested if the "tp_event->class->perf_probe" existed before
enabling it. This prevents "ftrace only" events (like the function
trace events) from being enabled by perf.
Unfortunately, kprobe events do not use perf_probe. This causes
kprobes to be missed by perf. To fix this, we add the test to
see if "tp_event->class->reg" exists as well as perf_probe.
Normal trace events have only "perf_probe" but no "reg" function,
and kprobes and syscalls have the "reg" but no "perf_probe".
The ftrace unique events do not have either, so this is a valid
test. If a kprobe or syscall is not to be probed by perf, the
"reg" function is called anyway, and will return a failure and
prevent perf from probing it.
Reported-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Tested-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
15 years ago
..
Kconfig
x86, perf, bts, mm: Delete the never used BTS-ptrace code
15 years ago
Makefile
x86, perf, bts, mm: Delete the never used BTS-ptrace code
15 years ago
blktrace.c
blktrace: Fix new kernel-doc warnings
15 years ago
ftrace.c
Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
15 years ago
kmemtrace.c
tracing: Allow events to share their print functions
15 years ago
power-traces.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
15 years ago
ring_buffer.c
ring-buffer: Move zeroing out excess in page to ring buffer code
15 years ago
ring_buffer_benchmark.c
ring-buffer: Make benchmark handle missed events
15 years ago
trace.c
Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
15 years ago
trace.h
Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
15 years ago
trace_boot.c
…
trace_branch.c
tracing: Allow events to share their print functions
15 years ago
trace_clock.c
tracing: Fix lockdep warning in global_clock()
15 years ago
trace_entries.h
x86, perf, bts, mm: Delete the never used BTS-ptrace code
15 years ago
trace_event_perf.c
perf/tracing: Fix regression of perf losing kprobe events
15 years ago
trace_events.c
tracing: Combine event filter_active and enable into single flags field
15 years ago
trace_events_filter.c
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip into trace/tip/tracing/core-6
15 years ago
trace_export.c
tracing: Remove duplicate id information in event structure
15 years ago
trace_functions.c
…
trace_functions_graph.c
tracing: Allow events to share their print functions
15 years ago
trace_irqsoff.c
tracing: Add graph output support for irqsoff tracer
15 years ago
trace_kprobe.c
perf_events, trace: Fix probe unregister race
15 years ago
trace_ksym.c
hw-breakpoints: Get the number of available registers on boot dynamically
15 years ago
trace_mmiotrace.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
15 years ago
trace_nop.c
…
trace_output.c
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
15 years ago
trace_output.h
tracing: Allow events to share their print functions
15 years ago
trace_printk.c
…
trace_sched_switch.c
tracing: Let tracepoints have data passed to tracepoint callbacks
15 years ago
trace_sched_wakeup.c
tracing: Let tracepoints have data passed to tracepoint callbacks
15 years ago
trace_selftest.c
Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
15 years ago
trace_selftest_dynamic.c
…
trace_stack.c
…
trace_stat.c
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
15 years ago
trace_stat.h
…
trace_syscalls.c
perf_events, trace: Fix probe unregister race
15 years ago
trace_sysprof.c
…
trace_workqueue.c
tracing: Let tracepoints have data passed to tracepoint callbacks
15 years ago