Michael Petlan
432bc6cbe1
perf header: Fix false warning when there are no duplicate cache entries
...
[ Upstream commit 28707826877f84bce0977845ea529cbdd08e4e8d ]
Before this patch, perf expected that there might be NPROC*4 unique
cache entries at max, however, it also expected that some of them would
be shared and/or of the same size, thus the final number of entries
would be reduced to be lower than NPROC*4. In case the number of entries
hadn't been reduced (was NPROC*4), the warning was printed.
However, some systems might have unusual cache topology, such as the
following two-processor KVM guest:
cpu level shared_cpu_list size
0 1 0 32K
0 1 0 64K
0 2 0 512K
0 3 0 8192K
1 1 1 32K
1 1 1 64K
1 2 1 512K
1 3 1 8192K
This KVM guest has 8 (NPROC*4) unique cache entries, which used to make
perf printing the message, although there actually aren't "way too many
cpu caches".
v2: Removing unused argument.
v3: Unifying the way we obtain number of cpus.
v4: Removed '& UINT_MAX' construct which is redundant.
Signed-off-by: Michael Petlan <mpetlan@redhat.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
LPU-Reference: 20191208162056.20772-1-mpetlan@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-12 12:21:25 +01:00
..
arch
perf tools: Fix cross compile for ARM64
2019-12-31 16:44:57 +01:00
bench
perf env: Remove needless cpumap.h header
2019-09-20 09:19:21 -03:00
Documentation
perf docs: Correct and clarify jitdump spec
2019-09-30 17:29:51 -03:00
examples /bpf
perf augmented_raw_syscalls: Reduce perf_event_output() boilerplate
2019-08-26 11:58:29 -03:00
include /bpf
perf include bpf: Add bpf_tail_call() prototype
2019-07-29 18:34:40 -03:00
jvmti
perf jvmti: Link against tools/lib/ctype.h to have weak strlcpy()
2019-10-15 11:47:38 -03:00
lib
libperf: Add perf_evlist__poll() function
2019-09-25 09:51:49 -03:00
pmu-events
perf jevents: Fix resource leak in process_mapfile() and main()
2019-12-31 16:44:53 +01:00
python
scripts
perf scripts python: exported-sql-viewer.py: Fix use of TRUE with SQLite
2019-12-13 08:42:16 +01:00
tests
perf tests: Disable bp_signal testing for arm64
2019-12-31 16:44:12 +01:00
trace
perf trace beauty ioctl: Fix off-by-one error in cmd->string table
2019-08-26 11:58:29 -03:00
ui
libperf: Add perf_evlist__first()/last() functions
2019-09-25 09:51:48 -03:00
util
perf header: Fix false warning when there are no duplicate cache entries
2020-01-12 12:21:25 +01:00
.gitignore
perf: Update .gitignore file
2019-08-31 22:27:52 -03:00
Build
builtin-annotate.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-bench.c
perf tools: Remove perf.h from source files not needing it
2019-08-29 17:38:32 -03:00
builtin-buildid-cache.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-buildid-list.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-c2c.c
perf c2c: Fix memory leak in build_cl_output()
2019-10-15 12:08:13 -03:00
builtin-config.c
perf tools: Remove util.h from where it is not needed
2019-09-20 09:19:20 -03:00
builtin-data.c
perf debug: Remove needless include directives from debug.h
2019-08-31 19:10:19 -03:00
builtin-diff.c
perf diff: Use llabs() with 64-bit values
2020-01-04 19:18:26 +01:00
builtin-evlist.c
perf evsel: Introduce evsel_fprintf.h
2019-09-25 16:26:34 -03:00
builtin-ftrace.c
perf auxtrace: Uninline functions that touch perf_session
2019-08-31 22:24:10 -03:00
builtin-help.c
perf debug: Remove needless include directives from debug.h
2019-08-31 19:10:19 -03:00
builtin-inject.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-kallsyms.c
perf dsos: Move the dsos struct and its methods to separate source files
2019-08-31 22:24:10 -03:00
builtin-kmem.c
perf kmem: Fix memory leak in compact_gfp_flags()
2019-10-16 10:08:32 -03:00
builtin-kvm.c
perf tools: Propagate get_cpuid() error
2019-09-30 17:29:54 -03:00
builtin-list.c
perf list: Allow plurals for metric, metricgroup
2019-09-25 09:51:42 -03:00
builtin-lock.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-mem.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-probe.c
perf probe: No need for symbol.h, symbol_conf is enough
2019-08-31 22:24:10 -03:00
builtin-record.c
libperf: Add perf_evlist__poll() function
2019-09-25 09:51:49 -03:00
builtin-report.c
perf report: Add warning when libunwind not compiled in
2019-12-31 16:44:06 +01:00
builtin-sched.c
perf evsel: Introduce evsel_fprintf.h
2019-09-25 16:26:34 -03:00
builtin-script.c
perf script: Fix brstackinsn for AUXTRACE
2020-01-04 19:18:27 +01:00
builtin-stat.c
libperf: Move 'sample_id' from 'struct evsel' to 'struct perf_evsel'
2019-09-25 09:51:47 -03:00
builtin-timechart.c
perf session: Return error code for perf_session__new() function on failure
2019-09-20 15:58:11 -03:00
builtin-top.c
perf evsel: Move config terms to a separate header
2019-09-25 16:26:40 -03:00
builtin-trace.c
perf evsel: Introduce evsel_fprintf.h
2019-09-25 16:26:34 -03:00
builtin-version.c
perf symbols: Move mem_info and branch_info out of symbol.h
2019-08-31 22:27:48 -03:00
builtin.h
perf tools: Remove needless util.h include from builtin.h
2019-08-28 17:19:34 -03:00
check-headers.sh
tools headers uapi: Sync linux/fs.h with the kernel sources
2019-09-30 17:29:22 -03:00
command-list.txt
CREDITS
design.txt
Makefile
Makefile.config
perf build: Add detection of java-11-openjdk-devel package
2019-09-25 16:26:41 -03:00
Makefile.perf
libtraceevent: Move traceevent plugins in its own subdirectory
2019-09-25 09:51:43 -03:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf tools: Make usage of test_attr__* optional for perf-sys.h
2019-10-31 21:38:41 +01:00
perf-with-kcore.sh
perf.c
libperf: Merge libperf_set_print() into libperf_init()
2019-09-25 09:51:49 -03:00
perf.h
perf time-utils: Adopt rdclock() from perf.h
2019-08-29 17:38:32 -03:00