perf annotate: Get rid of annotation->nr_jumps
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Tue, 4 Feb 2020 04:52:33 +0000 (10:22 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 4 Mar 2020 13:34:10 +0000 (10:34 -0300)
The 'nr_jumps' field in 'struct annotation' is not used since it's
inception in commit 2402e4a936a0 ("perf annotate browser: Show 'jumpy'
functions").  Get rid of it.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Link: http://lore.kernel.org/lkml/20200204045233.474937-7-ravi.bangoria@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h

index 0ea95be..f1ea0d6 100644 (file)
@@ -2611,8 +2611,6 @@ void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym)
 
                if (++al->jump_sources > notes->max_jump_sources)
                        notes->max_jump_sources = al->jump_sources;
-
-               ++notes->nr_jumps;
        }
 }
 
index 0012586..07c7759 100644 (file)
@@ -279,7 +279,6 @@ struct annotation {
        struct annotation_options *options;
        struct annotation_line  **offsets;
        int                     nr_events;
-       int                     nr_jumps;
        int                     max_jump_sources;
        int                     nr_entries;
        int                     nr_asm_entries;