All of lore.kernel.org
 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 related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mm, tracing: Print symbol name for kmem_alloc_node call_site events
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2020-01-02 15:20 UTC (permalink / raw)
  To: Junyong Sun
  Cc: mingo, akpm, joel, changbin.du, timmurray, sunjunyong, linux-kernel

On Thu,  2 Jan 2020 15:19:28 +0800
Junyong Sun <sunjy516@gmail.com> wrote:

> 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>

Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve

> ---
>  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,


^ 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.