]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Initialize the priv are in symbol__new()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Aug 2016 19:09:21 +0000 (16:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 30 Aug 2016 13:56:34 +0000 (10:56 -0300)
commit3161c0634832241272818f203f5a587934fc2798
treea4d7be51790bb2e80b09100588029b51bbe33179
parentfe18ea79c791a73248710f287976a6cd45ba8d76
perf annotate: Initialize the priv are in symbol__new()

We need to initializa some fields (right now just a mutex) when we
allocate the per symbol annotation struct, so do it at the symbol
constructor instead of (ab)using the filter mechanism for that.

This way we remove one of the few cases we have for that symbol filter,
which will eventually led to removing it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-cvz34avlz1lez888lob95390@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h
tools/perf/util/symbol.c
tools/perf/util/symbol.h