linux/tools/perf/lib
Jiri Olsa bd6b7736c1 libperf: Add tests_mmap_thread test
Add mmaping tests that generates 100 prctl calls in monitored child
process and validates it gets 100 events in ring buffer.

Committer tests:

  # make -C tools/perf/lib tests
  make: Entering directory '/home/acme/git/perf/tools/perf/lib'
    LINK     test-cpumap-a
    LINK     test-threadmap-a
    LINK     test-evlist-a
    LINK     test-evsel-a
    LINK     test-cpumap-so
    LINK     test-threadmap-so
    LINK     test-evlist-so
    LINK     test-evsel-so
  running static:
  - running test-cpumap.c...OK
  - running test-threadmap.c...OK
  - running test-evlist.c...OK
  - running test-evsel.c...OK
  running dynamic:
  - running test-cpumap.c...OK
  - running test-threadmap.c...OK
  - running test-evlist.c...OK
  - running test-evsel.c...OK
  make: Leaving directory '/home/acme/git/perf/tools/perf/lib'
  #

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20191017105918.20873-7-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-10-19 15:35:01 -03:00
..
Documentation libperf: Initial documentation 2019-07-29 18:34:47 -03:00
include libperf: Introduce perf_evlist__for_each_mmap() 2019-10-19 15:35:01 -03:00
tests libperf: Add tests_mmap_thread test 2019-10-19 15:35:01 -03:00
Build libperf: Add perf_mmap__init() function 2019-10-10 09:37:25 -03:00
core.c perf tools: Propagate CFLAGS to libperf 2019-10-11 10:55:22 -03:00
cpumap.c libperf: Adopt perf_cpu_map__max() function 2019-09-10 14:33:32 +01:00
evlist.c libperf: Move mask setup to perf_evlist__mmap_ops() 2019-10-19 15:35:01 -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: Adopt perf_mmap__read_init() from tools/perf 2019-10-10 11:45:21 -03:00
lib.c libperf: Move 'page_size' global variable to libperf 2019-09-25 09:51:48 -03:00
libperf.map libperf: Introduce perf_evlist__for_each_mmap() 2019-10-19 15:35:01 -03:00
libperf.pc.template libperf: Add install targets 2019-07-29 18:34:46 -03:00
Makefile libperf: Link static tests with libapi.a 2019-10-19 15:35:01 -03:00
mmap.c libperf: Introduce perf_evlist__for_each_mmap() 2019-10-19 15:35:01 -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