linux/tools/perf/lib
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
..
Documentation libperf: Initial documentation 2019-07-29 18:34:47 -03:00
include libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
tests libperf: Add perf_evsel__enable/disable test 2019-07-29 18:34:47 -03:00
Build libperf: Adopt the readn()/writen() functions from tools/perf 2019-07-29 18:34:46 -03:00
core.c libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
cpumap.c libperf: Adopt perf_cpu_map__max() function 2019-09-10 14:33:32 +01:00
evlist.c libperf: Add perf_evlist__id_add_fd() function 2019-09-25 09:51:48 -03:00
evsel.c libperf: Add perf_evsel__alloc_id/perf_evsel__free_id functions 2019-09-25 09:51:48 -03:00
internal.h libperf: Add debug output support 2019-07-29 18:34:44 -03:00
lib.c libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
libperf.map libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
libperf.pc.template libperf: Add install targets 2019-07-29 18:34:46 -03:00
Makefile libperf: Link libapi.a in libperf.so 2019-09-25 09:51:45 -03:00
threadmap.c libperf: Add perf_thread_map__nr/perf_thread_map__pid functions 2019-08-22 17:16:57 -03:00
xyarray.c libperf: Adopt xyarray class from perf 2019-07-29 18:34:45 -03:00