mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm, tracing: Print symbol name for kmem_alloc_node call_site events
@ 2020-01-02  7:19 Junyong Sun
  2020-01-02 15:20 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Junyong Sun @ 2020-01-02  7:19 UTC (permalink / raw)
  To: rostedt, mingo, akpm, joel, changbin.du, timmurray, sunjunyong
  Cc: linux-kernel

print the call_site ip of kmem_alloc_node using '%pS' to improve
the readability of raw slab trace points.

Signed-off-by: Junyong Sun <sunjunyong@xiaomi.com>
---
 include/trace/events/kmem.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/trace/events/kmem.h b/include/trace/events/kmem.h
index ad7e642b..f65b1f6 100644
--- a/include/trace/events/kmem.h
+++ b/include/trace/events/kmem.h
@@ -88,8 +88,8 @@ DECLARE_EVENT_CLASS(kmem_alloc_node,
 		__entry->node		= node;
 	),
 
-	TP_printk("call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
-		__entry->call_site,
+	TP_printk("call_site=%pS ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s node=%d",
+		(void *)__entry->call_site,
 		__entry->ptr,
 		__entry->bytes_req,
 		__entry->bytes_alloc,
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-02 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02  7:19 [PATCH] mm, tracing: Print symbol name for kmem_alloc_node call_site events Junyong Sun
2020-01-02 15:20 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®