From: Junyong Sun <sunjy516@gmail.com>
To: rostedt@goodmis.org, mingo@redhat.com, akpm@linux-foundation.org,
joel@joelfernandes.org, changbin.du@intel.com,
timmurray@google.com, sunjunyong@xiaomi.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] mm, tracing: Print symbol name for kmem_alloc_node call_site events
Date: Thu, 2 Jan 2020 15:19:28 +0800 [thread overview]
Message-ID: <1577949568-4518-1-git-send-email-sunjunyong@xiaomi.com> (raw)
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
next reply other threads:[~2020-01-02 7:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-02 7:19 Junyong Sun [this message]
2020-01-02 15:20 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1577949568-4518-1-git-send-email-sunjunyong@xiaomi.com \
--to=sunjy516@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=changbin.du@intel.com \
--cc=joel@joelfernandes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
--cc=sunjunyong@xiaomi.com \
--cc=timmurray@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®