Skip to content

Commit dc6e53f

Browse files
committed
perf trace: Set errpid to false for rseq and set_robust_list
JIRA: https://issues.redhat.com/browse/RHEL-78308 upstream ======== commit 8c56bfe Author: Anubhav Shelat <ashelat@redhat.com> Date: Thu May 29 10:33:35 2025 -0400 description =========== The 'rseq' and 'set_robust_list' syscalls don't return a pid, so set errpid for both to false. Fixes: 0c1019e ("perf trace: Mark the 'rseq' arg in the rseq syscall as coming from user space") Fixes: 1de5b5d ("perf trace: Mark the 'head' arg in the set_robust_list syscall as coming from user space") Signed-off-by: Anubhav Shelat <ashelat@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Dapeng Mi <dapeng1.mi@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250529143334.1469669-2-ashelat@redhat.com [ Remove explicit .errpid = false, omitting its initialization zeroes it, as noted by Namhyung ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
1 parent d4b331d commit dc6e53f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/perf/builtin-trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ static const struct syscall_fmt syscall_fmts[] = {
13271327
.arg = { [0] = { .scnprintf = SCA_FDAT, /* olddirfd */ },
13281328
[2] = { .scnprintf = SCA_FDAT, /* newdirfd */ },
13291329
[4] = { .scnprintf = SCA_RENAMEAT2_FLAGS, /* flags */ }, }, },
1330-
{ .name = "rseq", .errpid = true,
1330+
{ .name = "rseq",
13311331
.arg = { [0] = { .from_user = true /* rseq */, }, }, },
13321332
{ .name = "rt_sigaction",
13331333
.arg = { [0] = { .scnprintf = SCA_SIGNUM, /* sig */ }, }, },
@@ -1351,7 +1351,7 @@ static const struct syscall_fmt syscall_fmts[] = {
13511351
{ .name = "sendto",
13521352
.arg = { [3] = { .scnprintf = SCA_MSG_FLAGS, /* flags */ },
13531353
[4] = SCA_SOCKADDR_FROM_USER(addr), }, },
1354-
{ .name = "set_robust_list", .errpid = true,
1354+
{ .name = "set_robust_list",
13551355
.arg = { [0] = { .from_user = true /* head */, }, }, },
13561356
{ .name = "set_tid_address", .errpid = true, },
13571357
{ .name = "setitimer",

0 commit comments

Comments
 (0)