tracing: Updates for 5.15
Steven Rostedt
maintainerLinus,
[ Note, the memblock leak in bootconfig was the leak that we all agreed
on should be fixed in the memblock/bootconfig discussion, but I forgot to push it to you. ]
Tracing fixes for 5.15:
- Fix defined but not use warning/error for osnoise function
- Fix memory leak in event probe
- Fix memblock leak in bootconfig
- Fix the API of event probes to be like kprobes
- Added test to check removal of event probe API
- Fix recordmcount.pl for nds32 failed build
Please pull the latest trace-v5.15-rc3 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git
trace-v5.15-rc3
Tag SHA1: daeed983b1dc670be0b075ad61858dc6b4d7bb32 Head SHA1: be358af1191b1b2fedebd8f3421cafdc8edacc7d
Colin Ian King (1):
tracing: Fix missing * in comment block
Jackie Liu (1):
tracing: Fix missing osnoise tracer on max_latency
Masami Hiramatsu (1):
bootconfig: init: Fix memblock leak in xbc_make_cmdline()
Steven Rostedt (1):
nds32/ftrace: Fix Error: invalid operands (*UND* and *UND* sections) for `^'
Steven Rostedt (VMware) (2):
tracing: Fix event probe removal from dynamic events selftests/ftrace: Update test for more eprobe removal process
Vamshi K Sthambamkadi (1):
tracing: Fix memory leak in eprobe_register()
----
init/main.c | 1 + kernel/trace/trace.c | 11 ++-- kernel/trace/trace_eprobe.c | 61 ++++++++++++++++++++-- kernel/trace/trace_events_hist.c | 2 +- scripts/recordmcount.pl | 2 +- .../ftrace/test.d/dynevent/add_remove_eprobe.tc | 54 ++++++++++++++++++- 6 files changed, 117 insertions(+), 14 deletions(-)
---------------------------
init/main.c +1 -0
@@ -382,6 +382,7 @@ static char * __init xbc_make_cmdline(const char *key) ret =xbc_snprint_cmdline (new_cmdline, len +1 , root);if (ret <0 || ret > len) {pr_err ("Failed to print extra kernel cmdline.\n" ); +memblock_free_ptr (new_cmdline, len +1 );return NULL ; }
kernel/trace/trace.c +4 -7
@@ -1744,16 +1744,15 @@ void latency_fsnotify(struct trace_array *tr) irq_work_queue(&tr->fsnotify_irqwork); } -/* -* (defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER)) && \ -* defined(CONFIG_FSNOTIFY) -*/ -#else +#elif defined(CONFIG_TRACER_MAX_TRACE) || defined(CONFIG_HWLAT_TRACER) \ + || defined(CONFIG_OSNOISE_TRACER)#define trace_create_maxlat_file (tr, d_tracer) \ trace_create_file("tracing_max_latency", 0644, d_tracer, \ &tr->max_latency, &tracing_max_lat_fops) +#else +#define trace_create_maxlat_file (tr, d_tracer) do { } while (0)#endif #ifdef CONFIG_TRACER_MAX_TRACE
@@ -9473,9 +9472,7 @@ init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer)create_trace_options_dir (tr); -#if defined(CONFIG_TRACER_MAX_TRACE ) || defined(CONFIG_HWLAT_TRACER )trace_create_maxlat_file (tr, d_tracer); -#endif if (ftrace_create_function_files (tr, d_tracer))MEM_FAIL (1 ,"Could not allocate function filter files" );
kernel/trace/trace_eprobe.c +58 -3
74 lines not on this page · raw message
kernel/trace/trace_events_hist.c +1 -1
@@ -2506,7 +2506,7 @@ find_synthetic_field_var(struct hist_trigger_data *target_hist_data,* events. However, for convenience, users are allowed to directly * specify an event field in an action, which will be automatically * converted into a variable on their behalf. - +* * If a user specifies a field on an event that isn't the event the * histogram currently being defined (the target event histogram), the * only way that can be accomplished is if a new hist trigger is
scripts/recordmcount.pl +1 -1
@@ -189,7 +189,7 @@ if ($arch =~ /(x86(_64)?)|(i386)/) { $local_regex = "^[0-9a-fA-F]+\\s+t\\s+(\\S+)"; $weak_regex = "^[0-9a-fA-F]+\\s+([wW])\\s+(\\S+)"; $section_regex = "Disassembly of section\\s+(\\S+):"; -$function_regex = "^([0-9a-fA-F]+)\\s+<(.*?)>:"; +$function_regex = "^([0-9a-fA-F]+)\\s+<([^^]*?)>:"; $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s(mcount|__fentry__)\$"; $section_type = '@progbits'; $mcount_adjust = 0;
tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc +52 -2
64 lines not on this page · raw message
The pull request you sent on Fri, 15 Oct 2021 23:14:46 -0400:
The pull request you sent on Fri, 15 Oct 2021 23:14:46 -0400:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.gittrace-v5.15-rc3
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/368a978cc52ad14f90bd04a7d94ec0070da3e1c1
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html