Patch "perf off_cpu: Fix a typo in BTF tracepoint name, it should be 'btf_trace_sched_switch'" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    perf off_cpu: Fix a typo in BTF tracepoint name, it should be 'btf_trace_sched_switch'

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     perf-off_cpu-fix-a-typo-in-btf-tracepoint-name-it-sh.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b8c1d050a0f2833deba71481fcdea769e1558b3e
Author: Namhyung Kim <namhyung@xxxxxxxxxx>
Date:   Thu Dec 8 10:26:36 2022 -0800

    perf off_cpu: Fix a typo in BTF tracepoint name, it should be 'btf_trace_sched_switch'
    
    [ Upstream commit 167b266bf66c5b93171011ef9d1f09b070c2c537 ]
    
    In BTF, tracepoint definitions have the "btf_trace_" prefix.  The
    off-cpu profiler needs to check the signature of the sched_switch event
    using that definition.  But there's a typo (s/bpf/btf/) so it failed
    always.
    
    Fixes: b36888f71c8542cd ("perf record: Handle argument change in sched_switch")
    Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxxx>
    Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
    Cc: bpf@xxxxxxxxxxxxxxx
    Cc: Ian Rogers <irogers@xxxxxxxxxx>
    Cc: Ingo Molnar <mingo@xxxxxxxxxx>
    Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
    Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
    Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
    Cc: Song Liu <song@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20221208182636.524139-1-namhyung@xxxxxxxxxx
    Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/util/bpf_off_cpu.c b/tools/perf/util/bpf_off_cpu.c
index c257813e674e..01f70b8e705a 100644
--- a/tools/perf/util/bpf_off_cpu.c
+++ b/tools/perf/util/bpf_off_cpu.c
@@ -102,7 +102,7 @@ static void check_sched_switch_args(void)
 	const struct btf_type *t1, *t2, *t3;
 	u32 type_id;
 
-	type_id = btf__find_by_name_kind(btf, "bpf_trace_sched_switch",
+	type_id = btf__find_by_name_kind(btf, "btf_trace_sched_switch",
 					 BTF_KIND_TYPEDEF);
 	if ((s32)type_id < 0)
 		return;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux