linux/tools/perf/tests
Arnaldo Carvalho de Melo d3a7c489c7 perf tools: Reference count struct dso
This has a different model than the 'thread' and 'map' struct lifetimes:
there is not a definitive "don't use this DSO anymore" event, i.e. we may
get many 'struct map' holding references to the '/usr/lib64/libc-2.20.so'
DSO but then at some point some DSO may have no references but we still
don't want to straight away release its resources, because "soon" we may
get a new 'struct map' that needs it and we want to reuse its symtab or
other resources.

So we need some way to garbage collect it when crossing some memory
usage threshold, which is left for anoter patch, for now it is
sufficient to release it when calling dsos__exit(), i.e. when deleting
the whole list as part of deleting the 'struct machine' containing it,
which will leave only referenced objects being used.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/tip-majzgz07cm90t2tejrjy4clf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-06-08 10:31:40 -03:00
..
attr perf tests: Fix attr tests 2015-04-08 10:49:53 -03:00
attr.c
attr.py
bp_signal_overflow.c
bp_signal.c
Build perf tests: Aename open*.c to openat*.c 2015-05-29 12:43:41 -03:00
builtin-test.c perf tests: Switch from open to openat 2015-05-29 12:43:41 -03:00
code-reading.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
dso-data.c perf tools: Reference count struct dso 2015-06-08 10:31:40 -03:00
dwarf-unwind.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
evsel-roundtrip-name.c perf tools: Add parse_events_error interface 2015-04-29 10:37:58 -03:00
evsel-tp-sched.c
fdarray.c
hists_common.c perf tools: Reference count struct dso 2015-06-08 10:31:40 -03:00
hists_common.h
hists_cumulate.c perf hists: Reducing arguments of hist_entry_iter__add() 2015-05-27 12:21:43 -03:00
hists_filter.c perf hists: Reducing arguments of hist_entry_iter__add() 2015-05-27 12:21:43 -03:00
hists_link.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
hists_output.c perf hists: Reducing arguments of hist_entry_iter__add() 2015-05-27 12:21:43 -03:00
keep-tracking.c perf tools: Add parse_events_error interface 2015-04-29 10:37:58 -03:00
kmod-path.c perf tools: Deal with kernel module names in '[]' correctly 2015-06-03 10:02:38 -03:00
make perf tools: Add build option NO_AUXTRACE to exclude AUX area tracing 2015-05-05 18:12:53 -03:00
mmap-basic.c perf tests: Remove getpgrp from mmap-basic 2015-05-29 12:43:42 -03:00
mmap-thread-lookup.c perf machine: Protect the machine->threads with a rwlock 2015-05-08 16:19:27 -03:00
openat-syscall-all-cpus.c perf tests: Aename open*.c to openat*.c 2015-05-29 12:43:41 -03:00
openat-syscall-tp-fields.c perf tests: Aename open*.c to openat*.c 2015-05-29 12:43:41 -03:00
openat-syscall.c perf tests: Aename open*.c to openat*.c 2015-05-29 12:43:41 -03:00
parse-events.c perf tests: Switch from open to openat 2015-05-29 12:43:41 -03:00
parse-no-sample-id-all.c
perf-record.c
perf-targz-src-pkg
perf-time-to-tsc.c perf tools: Add parse_events_error interface 2015-04-29 10:37:58 -03:00
pmu.c perf tools: Add term support for parse_events_error 2015-04-29 10:38:01 -03:00
python-use.c
rdpmc.c
sample-parsing.c perf tests: Fix typo in sample-parsing.c 2015-01-22 17:03:01 -03:00
sw-clock.c
switch-tracking.c perf tools: Add parse_events_error interface 2015-04-29 10:37:58 -03:00
task-exit.c
tests.h perf tests: Switch from open to openat 2015-05-29 12:43:41 -03:00
thread-mg-share.c perf tools: Use atomic.h for the map_groups refcount 2015-05-15 15:20:44 -03:00
vmlinux-kallsyms.c perf tools: Introduce struct maps 2015-05-27 20:21:41 -03:00