Alexei Starovoitov
977c1f9c8c
ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records
...
ftrace_shutdown() checks for sanity of ftrace records
and if dyn_ftrace->flags is not zero, it will warn.
It can happen that 'flags' are set to FTRACE_FL_DISABLED at this point,
since some module was loaded, but before ftrace_module_enable()
cleared the flags for this module.
In other words the module.c is doing:
ftrace_module_init(mod); // calls ftrace_update_code() that sets flags=FTRACE_FL_DISABLED
... // here ftrace_shutdown() is called that warns, since
err = prepare_coming_module(mod); // didn't have a chance to clear FTRACE_FL_DISABLED
Fix it by ignoring disabled records.
It's similar to what __ftrace_hash_rec_update() is already doing.
Link: http://lkml.kernel.org/r/1478560460-3818619-1-git-send-email-ast@fb.com
Cc: stable@vger.kernel.org
Fixes: b7ffffbb46 "ftrace: Add infrastructure for delayed enabling of module functions"
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2016-11-14 16:31:41 -05:00
..
blktrace.c
block: Fix secure erase
2016-08-16 09:16:51 -06:00
bpf_trace.c
bpf: add BPF_CALL_x macros for declaring helpers
2016-09-09 19:36:04 -07:00
ftrace.c
ftrace: Ignore FTRACE_FL_DISABLED while walking dyn_ftrace records
2016-11-14 16:31:41 -05:00
Kconfig
This release cycle is rather small. Just a few fixes to tracing.
2016-10-06 11:48:41 -07:00
Makefile
Disable the __builtin_return_address() warning globally after all
2016-10-12 10:23:41 -07:00
power-traces.c
ring_buffer.c
ring-buffer: Prevent overflow of size in ring_buffer_resize()
2016-05-13 16:44:20 -04:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
This release cycle is rather small. Just a few fixes to tracing.
2016-10-06 11:48:41 -07:00
trace.h
tracing: Have max_latency be defined for HWLAT_TRACER as well
2016-09-12 09:59:46 -04:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_entries.h
tracing: Add NMI tracing in hwlat detector
2016-09-02 12:47:55 -04:00
trace_event_perf.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2016-05-17 16:26:30 -07:00
trace_events.c
tracing: Show the preempt count of when the event was called
2016-06-20 09:54:21 -04:00
trace_events_filter.c
tracing: Use temp buffer when filtering events
2016-05-03 17:59:24 -04:00
trace_events_filter_test.h
trace_events_hist.c
tracing: Fix use-after-free in hist_register_trigger()
2016-08-02 15:16:30 -04:00
trace_events_trigger.c
tracing: Call traceoff trigger after event is recorded
2016-09-23 09:47:59 -04:00
trace_export.c
trace_functions.c
ftrace: Have set_ftrace_pid use the bitmap like events do
2016-06-20 09:54:19 -04:00
trace_functions_graph.c
This release cycle is rather small. Just a few fixes to tracing.
2016-10-06 11:48:41 -07:00
trace_hwlat.c
tracing: Add NMI tracing in hwlat detector
2016-09-02 12:47:55 -04:00
trace_irqsoff.c
trace_kdb.c
trace_kprobe.c
ftrace: kprobe: uprobe: Add x8/x16/x32/x64 for hexadecimal types
2016-08-23 15:38:09 -03:00
trace_mmiotrace.c
tracing: Expose CPU physical addresses (resource values) for PCI devices
2016-06-20 09:54:22 -04:00
trace_nop.c
trace_output.c
tracing: Add NMI tracing in hwlat detector
2016-09-02 12:47:55 -04:00
trace_output.h
trace_printk.c
tracing: Handle NULL formats in hold_module_trace_bprintk_format()
2016-06-20 09:46:12 -04:00
trace_probe.c
ftrace: kprobe: uprobe: Show u8/u16/u32/u64 types in decimal
2016-08-23 17:06:38 -03:00
trace_probe.h
ftrace: kprobe: uprobe: Show u8/u16/u32/u64 types in decimal
2016-08-23 17:06:38 -03:00
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
tracing/syscalls: fix multiline in error message text
2016-09-29 10:25:23 +02:00
trace_uprobe.c
This release cycle is rather small. Just a few fixes to tracing.
2016-10-06 11:48:41 -07:00
tracing_map.c
tracing: Handle tracing_map_alloc_elts() error path correctly
2016-04-26 09:40:30 -04:00
tracing_map.h
tracing: Update some tracing_map constants and comments
2016-04-19 12:16:06 -04:00