Skip to content
Snippets Groups Projects
Commit 8b1e2c50 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull tracing fixes from Steven Rostedt:
 "Two fixes:

   - Fix an unsafe printf string usage in a kmem trace event

   - Fix spelling in output from the latency-collector tool"

* tag 'trace-v5.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  tracing/tools: fix a couple of spelling mistakes
  mm, tracing: Fix kmem_cache_free trace event to not print stale pointers
parents 2bd3f4ee c1d96fa6
No related branches found
No related tags found
No related merge requests found
...@@ -144,17 +144,17 @@ TRACE_EVENT(kmem_cache_free, ...@@ -144,17 +144,17 @@ TRACE_EVENT(kmem_cache_free,
TP_STRUCT__entry( TP_STRUCT__entry(
__field( unsigned long, call_site ) __field( unsigned long, call_site )
__field( const void *, ptr ) __field( const void *, ptr )
__field( const char *, name ) __string( name, name )
), ),
TP_fast_assign( TP_fast_assign(
__entry->call_site = call_site; __entry->call_site = call_site;
__entry->ptr = ptr; __entry->ptr = ptr;
__entry->name = name; __assign_str(name, name);
), ),
TP_printk("call_site=%pS ptr=%p name=%s", TP_printk("call_site=%pS ptr=%p name=%s",
(void *)__entry->call_site, __entry->ptr, __entry->name) (void *)__entry->call_site, __entry->ptr, __get_str(name))
); );
TRACE_EVENT(mm_page_free, TRACE_EVENT(mm_page_free,
......
...@@ -1650,7 +1650,7 @@ static void start_printthread(void) ...@@ -1650,7 +1650,7 @@ static void start_printthread(void)
if (ufd < 0 || if (ufd < 0 ||
read(ufd, seed, sizeof(*seed)) != sizeof(*seed)) { read(ufd, seed, sizeof(*seed)) != sizeof(*seed)) {
printf( printf(
"Warning! Using trivial random nummer seed, since %s not available\n", "Warning! Using trivial random number seed, since %s not available\n",
DEV_URANDOM); DEV_URANDOM);
fflush(stdout); fflush(stdout);
*seed = i; *seed = i;
...@@ -1711,8 +1711,8 @@ static void show_usage(void) ...@@ -1711,8 +1711,8 @@ static void show_usage(void)
"\t\t\tbeginning, end, and backtrace.\n\n" "\t\t\tbeginning, end, and backtrace.\n\n"
"-g, --graph\t\tEnable the display-graph option in trace_option. This\n" "-g, --graph\t\tEnable the display-graph option in trace_option. This\n"
"\t\t\toption causes ftrace to show the functionph of how\n" "\t\t\toption causes ftrace to show the graph of how functions\n"
"\t\t\tfunctions are calling other functions.\n\n" "\t\t\tare calling other functions.\n\n"
"-c, --policy POL\tRun the program with scheduling policy POL. POL can be\n" "-c, --policy POL\tRun the program with scheduling policy POL. POL can be\n"
"\t\t\tother, batch, idle, rr or fifo. The default is rr. When\n" "\t\t\tother, batch, idle, rr or fifo. The default is rr. When\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment