linux/tools/lib/api
Wang Nan 2b43834706 tools lib fd array: Allow associating a pointer cookie with each entry
Add a 'ptr' field to fdarray->priv array.

This feature will be used by following commits, which introduce
muiltiple 'struct perf_mmap' arrays for different types of mapping.

Because of this, during fdarray__filter(), a simple 'idx' is not enough.

Add a pointer cookie that allows to directly associate a 'struct
perf_mmap' pointer to an fdarray entry.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nilay Vaish <nilayvaish@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1468485287-33422-3-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-07-15 17:27:46 -03:00
..
fd tools lib fd array: Allow associating a pointer cookie with each entry 2016-07-15 17:27:46 -03:00
fs tools lib api fs: Use base 0 in filename__read_ull 2016-07-15 13:38:05 -03:00
Build tools lib api: Add debug output support 2016-02-16 17:12:56 -03:00
cpu.c tools lib api cpu: Introduce cpu.[ch] to obtain cpu related information 2015-09-14 12:50:26 -03:00
cpu.h tools lib api cpu: Introduce cpu.[ch] to obtain cpu related information 2015-09-14 12:50:26 -03:00
debug-internal.h tools lib api: Add debug output support 2016-02-16 17:12:56 -03:00
debug.c tools lib api: Add debug output support 2016-02-16 17:12:56 -03:00
debug.h tools lib api: Add debug output support 2016-02-16 17:12:56 -03:00
Makefile tools lib api fs: Use str_error_r() 2016-07-12 15:20:29 -03:00