aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYanteng Si <[email protected]>2023-08-25 11:28:02 +0000
committerArnaldo Carvalho de Melo <[email protected]>2023-08-29 17:13:48 +0000
commitc56f286f24c4b56d9ae81fa381c02af56ab9bfb2 (patch)
tree2bb6a7bfacbd9f3499afc1b0cc52d8ee2d575b91 /tools/perf/scripts/python/export-to-sqlite.py
parentperf lock contention: Fix typo in max-stack option description (diff)
downloadkernel-c56f286f24c4b56d9ae81fa381c02af56ab9bfb2.tar.gz
kernel-c56f286f24c4b56d9ae81fa381c02af56ab9bfb2.zip
perf tools: Allow to use cpuinfo on LoongArch
Define these macros so that the CPU name can be displayed when running 'perf report' and 'perf timechart'. Committer notes: No need to have: if (strcasestr(buf, "Model Name")) { strlcpy(cpu_m, &buf[13], 255); break; } else if (strcasestr(buf, "model name")) { strlcpy(cpu_m, &buf[13], 255); break; } As the point of strcasestr() is to be case insensitive to both the haystack and the needle, so simplify the above to just: if (strcasestr(buf, "model name")) { strlcpy(cpu_m, &buf[13], 255); break; } Signed-off-by: Yanteng Si <[email protected]> Acked-by: Huacai Chen <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/db968a186a10e4629fe10c26a1210f7126ad41ec.1692962043.git.siyanteng@loongson.cn Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions