mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Huang Shijie <shijie@os.amperecomputing.com>
Cc: patches@amperecomputing.com, cl@linux.com,
	yang@os.amperecomputing.com, mathieu.desnoyers@efficios.com,
	peterz@infradead.org, jpoimboe@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tracepoint: Print the function symbol when tracepoint_debug is set
Date: Tue, 4 Mar 2025 10:33:52 -0500	[thread overview]
Message-ID: <20250304103352.0d2b6f71@gandalf.local.home> (raw)
In-Reply-To: <20250304101843.12562-1-shijie@os.amperecomputing.com>


Can you resend this with linux-trace-kernel@vger.kernel.org please.

I probably should update the MAINTAINERS file and place this and
include/linux/tracepoint.h under TRACING.

-- Steve


On Tue,  4 Mar 2025 18:18:43 +0800
Huang Shijie <shijie@os.amperecomputing.com> wrote:

> When tracepoint_debug is set, we may get the output in kernel log:
>      [  380.013843] Probe 0 : 00000000f0d68cda
> 
> It is not readable, so change to print the function symbol.
> After this patch, the output may becomes:
>      [   54.930567] Probe 0 : perf_trace_sched_wakeup_template
> 
> Reviewed-by: Christoph Lameter <cl@linux.com>
> Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com>
> ---
>  kernel/tracepoint.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
> index 1848ce7e2976..82bef4b9400a 100644
> --- a/kernel/tracepoint.c
> +++ b/kernel/tracepoint.c
> @@ -127,7 +127,7 @@ static void debug_print_probes(struct tracepoint_func *funcs)
>  		return;
>  
>  	for (i = 0; funcs[i].func; i++)
> -		printk(KERN_DEBUG "Probe %d : %p\n", i, funcs[i].func);
> +		printk(KERN_DEBUG "Probe %d : %ps\n", i, funcs[i].func);
>  }
>  
>  static struct tracepoint_func *


      reply	other threads:[~2025-03-04 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-04 10:18 Huang Shijie
2025-03-04 15:33 ` Steven Rostedt [this message]

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=20250304103352.0d2b6f71@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=cl@linux.com \
    --cc=jpoimboe@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=patches@amperecomputing.com \
    --cc=peterz@infradead.org \
    --cc=shijie@os.amperecomputing.com \
    --cc=yang@os.amperecomputing.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®