tools: Pass arg to fdarray__filter's call back function
authorWang Nan <wangnan0@huawei.com>
Wed, 25 May 2016 13:44:57 +0000 (13:44 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 May 2016 15:41:46 +0000 (12:41 -0300)
commit258e4bfcbdaa6d128c391e6e25f03d54dee4f226
treeed95856af99c28a17a75a8d065365d0c5cbd7419
parent5a5ddeb6e3559675070df6b39ba32a4dd1ab4dd5
tools: Pass arg to fdarray__filter's call back function

Before this patch there's no way to pass arguments to fdarray__filter's
call back function.

This improvement will be used by 'perf record' to support unmapping ring
buffer for both main evlist and overwrite evlist. Without this patch
there's no way to track overwrite evlist from 'struct fdarray'.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1464183898-174512-10-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fd/array.c
tools/lib/api/fd/array.h
tools/perf/tests/fdarray.c
tools/perf/util/evlist.c