1
0
Fork 0
alistair23-linux/tools/perf/arch/x86/tests
Jiri Olsa 20f2be1d48 libperf: Move 'page_size' global variable to libperf
We need the 'page_size' variable in libperf, so move it there.

Add a libperf_init() as a global libperf init function to obtain this
value via sysconf() at tool start.

Committer notes:

Add internal/lib.h to tools/perf/ files using 'page_size', sometimes
replacing util.h with it if that was the only reason for having util.h
included.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lore.kernel.org/lkml/20190913132355.21634-33-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-09-25 09:51:48 -03:00
..
Build perf intel-pt: Add Intel PT packet decoder test 2019-06-17 15:57:17 -03:00
arch-tests.c perf intel-pt: Add Intel PT packet decoder test 2019-06-17 15:57:17 -03:00
bp-modify.c perf debug: Remove needless include directives from debug.h 2019-08-31 19:10:19 -03:00
dwarf-unwind.c perf map: Move structs and prototypes for map groups to a separate header 2019-02-06 10:00:38 -03:00
gen-insn-x86-dat.awk treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
gen-insn-x86-dat.sh treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
insn-x86-dat-32.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
insn-x86-dat-64.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
insn-x86-dat-src.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
insn-x86.c perf intel-pt: Use shared x86 insn decoder 2019-08-31 22:27:52 -03:00
intel-cqm.c libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
intel-pt-pkt-decoder-test.c perf intel-pt: Add Intel PT packet decoder test 2019-06-17 15:57:17 -03:00
perf-time-to-tsc.c libperf: Add perf_evlist__first()/last() functions 2019-09-25 09:51:48 -03:00
rdpmc.c libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
regs_load.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00