mirror_ubuntu-kernels/tools/perf
Ian Rogers 30f29bae91 perf tool: Constify tool pointers
The tool pointer (to a struct largely of function pointers) is passed
around but is unchanged except at initialization. Change parameter and
variable types to be const to lower the possibilities of what could
happen with a tool.

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Leo Yan <leo.yan@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Jonathan Cameron <jonathan.cameron@huawei.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linux.dev>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Nick Terrell <terrelln@fb.com>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <song@kernel.org>
Cc: Sun Haiyong <sunhaiyong@loongson.cn>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yanteng Si <siyanteng@loongson.cn>
Cc: Yicong Yang <yangyicong@hisilicon.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20240812204720.631678-4-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2024-08-12 18:05:14 -03:00
..
arch perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
bench perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
dlfilters
Documentation perf docs: Refine the description for the buffer size 2024-08-12 13:59:22 -03:00
include/perf
jvmti
pmu-events perf vendor events: SKX, CLX, SNR uncore cache event fixes 2024-08-12 18:04:35 -03:00
python
scripts perf scripts python cs-etm: Restore first sample log in verbose mode 2024-07-31 16:58:18 -03:00
tests perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
trace perf trace: Remove arg_fmt->is_enum, we can get that from the BTF type 2024-07-31 16:12:59 -03:00
ui perf annotate-data: Show first-level children by default in TUI 2024-08-12 18:04:35 -03:00
util perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
.gitignore perf build: Shellcheck support for OUTPUT directory 2023-12-05 15:46:43 -03:00
Build perf util: Make util its own library 2024-06-26 11:07:42 -07:00
builtin-annotate.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-bench.c perf bench uprobe: Add uretprobe variant of uprobe benchmarks 2024-04-12 17:54:02 -03:00
builtin-buildid-cache.c perf dso: Add reference count checking and accessor functions 2024-05-06 15:28:49 -03:00
builtin-buildid-list.c perf dso: Add reference count checking and accessor functions 2024-05-06 15:28:49 -03:00
builtin-c2c.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-config.c
builtin-daemon.c perf daemon: Convert comma to semicolon 2024-07-31 16:58:18 -03:00
builtin-data.c
builtin-diff.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-evlist.c
builtin-ftrace.c perf ftrace profile: Add -s/--sort option 2024-07-31 16:58:18 -03:00
builtin-help.c
builtin-inject.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-kallsyms.c perf dso: Add reference count checking and accessor functions 2024-05-06 15:28:49 -03:00
builtin-kmem.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-kvm.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-kwork.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-list.c perf list: Fix the --no-desc option 2024-05-28 11:29:49 -07:00
builtin-lock.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-mem.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-probe.c perf probe: Use zfree() to avoid possibly accessing dangling pointers 2024-05-07 12:44:02 -03:00
builtin-record.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-report.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-sched.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-script.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-stat.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-timechart.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-top.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-trace.c perf tool: Constify tool pointers 2024-08-12 18:05:14 -03:00
builtin-version.c perf version: Display availability of OpenCSD support 2024-03-03 22:48:40 -08:00
builtin.h perf tools: Suggest inbuilt commands for unknown command 2024-03-21 13:54:40 -03:00
check-headers.sh tools headers: Synchronize linux/bits.h with the kernel sources 2024-04-26 22:13:10 -03:00
command-list.txt
CREDITS
design.txt
Makefile perf tools: Fix wrong message when running "make JOBS=1" 2024-08-01 12:11:33 -03:00
Makefile.config perf: build: Link lib 'zstd' for static build 2024-07-26 11:15:47 -07:00
Makefile.perf perf tools: Create source symlink in perf object dir 2024-08-09 17:37:24 -03:00
MANIFEST tools perf: Add arm64 sysreg files to MANIFEST 2023-11-22 11:17:53 -08:00
perf-archive.sh perf build: Add shellcheck to tools/perf scripts 2024-04-12 17:54:02 -03:00
perf-completion.sh perf build: Add shellcheck to tools/perf scripts 2024-04-12 17:54:02 -03:00
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c perf tools: Suggest inbuilt commands for unknown command 2024-03-21 13:54:40 -03:00
perf.h