linux-stable/tools/perf
Adrian Hunter bbe69615b5 perf kcore_copy: Do not check /proc/modules is unchanged
[ Upstream commit 5b427df27b ]

/proc/kallsyms and /proc/modules are compared before and after the copy
in order to ensure no changes during the copy.

However /proc/modules also might change due to reference counts changing
even though that does not make any difference.

Any modules loaded or unloaded should be visible in changes to kallsyms,
so it is not necessary to check /proc/modules also anyway.

Remove the comparison checking that /proc/modules is unchanged.

Fixes: fc1b691d76 ("perf buildid-cache: Add ability to add kcore to the cache")
Reported-by: Daniel Dao <dqminh@cloudflare.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Daniel Dao <dqminh@cloudflare.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220914122429.8770-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 10:56:51 +02:00
..
arch perf unwind: Fix libunwind build failure on i386 systems 2019-10-11 18:18:43 +02:00
bench perf bench numa: Address compiler error on s390 2022-05-25 08:41:21 +02:00
Documentation perf record/stat: Explicitly call out event modifiers in the documentation 2020-09-09 19:03:06 +02:00
jvmti tools build: Check if gettid() is available before providing helper 2021-03-24 11:04:59 +01:00
pmu-events perf jevents: Fix event syntax error caused by ExtSel 2022-06-14 16:53:52 +02:00
python tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
scripts tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
tests perf test bpf: Free obj_buf 2021-07-28 11:12:17 +02:00
trace perf trace beauty ioctl: Fix off-by-one error in cmd->string table 2019-10-05 12:47:56 +02:00
ui perf hist: Fix memory leak of a perf_hpp_fmt 2021-12-08 08:46:54 +01:00
util perf kcore_copy: Do not check /proc/modules is unchanged 2022-09-28 10:56:51 +02:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c perf c2c: Fix sorting in percent_rmt_hitm_cmp() 2022-06-14 16:53:57 +02:00
builtin-config.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c perf ftrace: Fix failure to set cpumask when only one cpu is present 2019-08-29 08:26:41 +02:00
builtin-help.c perf help: Remove needless use of strncpy() 2019-07-03 13:15:57 +02:00
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c perf kmem: Fix memory leak in compact_gfp_flags() 2019-11-10 11:25:13 +01:00
builtin-kvm.c
builtin-list.c
builtin-lock.c perf lock: Don't free "lock_seq_stat" if read_count isn't zero 2020-11-24 13:05:46 +01:00
builtin-mem.c
builtin-probe.c perf probe: Do not show the skipped events 2020-06-20 10:25:21 +02:00
builtin-record.c perf record: Synthesize features before events in pipe mode 2018-12-29 13:39:08 +01:00
builtin-report.c perf report: Fix NULL pointer dereference in hists__fprintf_nr_sample_events() 2020-06-25 15:41:58 +02:00
builtin-sched.c
builtin-script.c perf script: Fix brstackinsn for AUXTRACE 2020-01-04 13:59:52 +01:00
builtin-stat.c perf stat: Reset previous counts on repeat with interval 2019-10-11 18:18:47 +02:00
builtin-timechart.c
builtin-top.c perf top: Fix stdio interface input handling with glibc 2.28+ 2020-10-14 09:51:11 +02:00
builtin-trace.c perf trace: Support multiple "vfs_getname" probes 2019-03-13 14:03:21 -07:00
builtin-version.c
builtin.h
check-headers.sh tools include: Adopt linux/bits.h 2019-04-27 09:35:41 +02:00
command-list.txt
CREDITS
design.txt
Makefile tools: Let O= makes handle a relative path with -C option 2020-04-02 16:34:30 +02:00
Makefile.config tools build feature: Check if pthread_barrier_t is available 2021-03-24 11:05:00 +01:00
Makefile.perf tools: fix cross-compile var clobbering 2019-01-13 10:01:02 +01:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h perf tools: Increase MAX_NR_CPUS and MAX_CACHES 2019-07-31 07:28:30 +02:00