linux/tools/perf
James Clark 434fffa926 perf probe: Fix uninitialized variable
Since the linked fixes: commit, err is returned uninitialized due to the
removal of "return 0". Initialize err to fix it.

This fixes the following intermittent test failure on release builds:

 $ perf test "testsuite_probe"
 ...
 -- [ FAIL ] -- perf_probe :: test_invalid_options :: mutually exclusive options :: -L foo -V bar (output regexp parsing)
 Regexp not found: \"Error: switch .+ cannot be used with switch .+\"
 ...

Fixes: 080e47b2a2 ("perf probe: Introduce quotation marks support")
Tested-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20241211085525.519458-2-james.clark@linaro.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2024-12-11 21:40:46 -08:00
..
arch tools headers: Sync *xattrat syscall changes with the kernel sources 2024-12-04 14:34:50 -08:00
bench perf header: Move is_cpu_online to numa bench 2024-11-16 16:36:47 -03:00
check-header_ignore_hunks/lib
dlfilters
Documentation perf disasm: Allow configuring what disassemblers to use 2024-11-13 16:27:35 -03:00
include/perf
jvmti
pmu-events perf pmu: Move pmu_metrics_table__find and remove ARM override 2024-11-16 16:42:36 -03:00
python
scripts
tests perf test expr: Fix system_tsc_freq for only x86 2024-12-11 09:19:44 -08:00
trace perf tools: Fix build error on generated/fs_at_flags_array.c 2024-12-04 14:34:50 -08:00
ui
util perf probe: Fix uninitialized variable 2024-12-11 21:40:46 -08:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c
builtin-check.c
builtin-config.c
builtin-daemon.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c perf ftrace: Fix undefined behavior in cmp_profile_data() 2024-12-09 13:54:08 -08:00
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c perf header: Refactor get_cpuid to take a CPU for ARM 2024-11-16 16:37:54 -03:00
builtin-kwork.c
builtin-list.c perf list: Fix topic and pmu_name argument order 2024-11-13 16:27:35 -03:00
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c
builtin-report.c
builtin-sched.c
builtin-script.c
builtin-stat.c
builtin-timechart.c perf timechart: Remove redundant variable assignment 2024-11-13 16:27:35 -03:00
builtin-top.c
builtin-trace.c perf trace: Avoid garbage when not printing a syscall's arguments 2024-11-14 18:06:52 -03:00
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config perf build: Remove PERF_HAVE_DWARF_REGS 2024-11-09 08:39:14 -08:00
Makefile.perf
MANIFEST
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c
perf.h