diff options
| author | Ingo Molnar <mingo@kernel.org> | 2019-01-26 12:50:29 +0300 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2019-01-26 12:50:29 +0300 | 
| commit | b844ff366f06a2bcecfbd053b4d4a472e670dec8 (patch) | |
| tree | d12a79636ae246a3b895af031f2e7d55cb6e194d /tools/perf/builtin-annotate.c | |
| parent | f575494d4a610278ea8597f2f798c8431b94e884 (diff) | |
| parent | 76a06125dd57ed2c7559410168b543313fa0cc51 (diff) | |
| download | linux-b844ff366f06a2bcecfbd053b4d4a472e670dec8.tar.xz | |
Merge tag 'perf-core-for-mingo-5.0-20190126' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
BPF:
  Song Liu:
  - Fix synthesized PERF_RECORD_KSYMBOL/BPF_EVENT
  Arnaldo Carvalho de Melo:
  - Add bpf_map() helper, to make BPF map declararions more compact and
    allow for BTF annotations to be made transparently.
perf script python:
  Tony Jones:
  - Remove explicit shebangs.
  - Fix the PYTHON=python3 builds.
Core:
  Davidlohr Bueso:
  - Update rbtree implementation, getting it closer to the kernel one.
  - Use cached rbtrees.
  Arnaldo Carvalho de Melo:
  - Remove some needless headers from .c and .h files fixing up the fallout,
    to reduce building time when changes are made to .h files
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
| -rw-r--r-- | tools/perf/builtin-annotate.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 93d679eaf1f4..20db635347e5 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -227,7 +227,7 @@ static int perf_evsel__add_sample(struct perf_evsel *evsel,  		 * the DSO?  		 */  		if (al->sym != NULL) { -			rb_erase(&al->sym->rb_node, +			rb_erase_cached(&al->sym->rb_node,  				 &al->map->dso->symbols);  			symbol__delete(al->sym);  			dso__reset_find_symbol_cache(al->map->dso); @@ -305,7 +305,7 @@ static void hists__find_annotations(struct hists *hists,  				    struct perf_evsel *evsel,  				    struct perf_annotate *ann)  { -	struct rb_node *nd = rb_first(&hists->entries), *next; +	struct rb_node *nd = rb_first_cached(&hists->entries), *next;  	int key = K_RIGHT;  	while (nd) {  | 
