All of lore.kernel.org
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Anubhav Shelat <ashelat@redhat.com>
Cc: mpetlan@redhat.com, acme@kernel.org, irogers@google.com,
	linux-perf-users@vger.kernel.org, peterz@infradead.org,
	mingo@redhat.com, mark.rutland@arm.com,
	alexander.shishkin@linux.intel.com, jolsa@kernel.org,
	adrian.hunter@intel.com, kan.liang@linux.intel.com,
	dapeng1.mi@linux.intel.com, james.clark@linaro.org
Subject: Re: [PATCH] perf trace: set errpid to false for rseq and set_robust_list
Date: Thu, 29 May 2025 13:58:20 -0700	[thread overview]
Message-ID: <aDjKbDqdlnrC50ul@google.com> (raw)
In-Reply-To: <20250529143334.1469669-2-ashelat@redhat.com>

Hello,

On Thu, May 29, 2025 at 10:33:35AM -0400, Anubhav Shelat wrote:
> rseq and set_robust_list don't return a pid, so set errpid for both to
> false.
> 
> Fixes 0c1019e3463b2 and 1de5b5dcb8353.
> 
> Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
> ---
>  tools/perf/builtin-trace.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
> index 07eddd5c0baa..0e086b7c1495 100644
> --- a/tools/perf/builtin-trace.c
> +++ b/tools/perf/builtin-trace.c
> @@ -1348,7 +1348,7 @@ static const struct syscall_fmt syscall_fmts[] = {
>  	  .arg = { [0] = { .scnprintf = SCA_FDAT, /* olddirfd */ },
>  		   [2] = { .scnprintf = SCA_FDAT, /* newdirfd */ },
>  		   [4] = { .scnprintf = SCA_RENAMEAT2_FLAGS, /* flags */ }, }, },
> -	{ .name	    = "rseq",	    .errpid = true,
> +	{ .name	    = "rseq",	    .errpid = false,

Probably better to just remove the errpid part.


>  	  .arg = { [0] = { .from_user = true /* rseq */, }, }, },
>  	{ .name	    = "rt_sigaction",
>  	  .arg = { [0] = { .scnprintf = SCA_SIGNUM, /* sig */ }, }, },
> @@ -1372,7 +1372,7 @@ static const struct syscall_fmt syscall_fmts[] = {
>  	{ .name	    = "sendto",
>  	  .arg = { [3] = { .scnprintf = SCA_MSG_FLAGS, /* flags */ },
>  		   [4] = SCA_SOCKADDR_FROM_USER(addr), }, },
> -	{ .name	    = "set_robust_list",	    .errpid = true,
> +	{ .name	    = "set_robust_list",	    .errpid = false,

Ditto.

Thanks,
Namhyung


>  	  .arg = { [0] = { .from_user = true /* head */, }, }, },
>  	{ .name	    = "set_tid_address", .errpid = true, },
>  	{ .name	    = "setitimer",
> -- 
> 2.49.0
> 

      parent reply	other threads:[~2025-05-29 20:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-29 14:33 [PATCH] perf trace: set errpid to false for rseq and set_robust_list Anubhav Shelat
2025-05-29 20:27 ` Arnaldo Carvalho de Melo
2025-05-29 20:58 ` Namhyung Kim [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=aDjKbDqdlnrC50ul@google.com \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=ashelat@redhat.com \
    --cc=dapeng1.mi@linux.intel.com \
    --cc=irogers@google.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=kan.liang@linux.intel.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=mpetlan@redhat.com \
    --cc=peterz@infradead.org \
    /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 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.