diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-04-02 10:16:05 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-04-02 12:18:43 -0400 |
commit | b83e868d0a0350c107b98417b4dcc73834506f98 (patch) | |
tree | 4232690080dcd313cf7db43f8ad1f265720715a2 | |
parent | 7327259d7ea96d04d02e7dbe51ee9201319dc204 (diff) |
perf db-export: No need to have ->thread twice in struct export_sample
As it comes from address_location->thread, that is already stored as
export_sample->al, where the thread can be obtained.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20150402141542.GA9630@kernel.org
Link: http://lkml.kernel.org/n/tip-bzotbl4epoztw0jd6sm2stpf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/db-export.c | 1 | ||||
-rw-r--r-- | tools/perf/util/db-export.h | 1 | ||||
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/util/db-export.c b/tools/perf/util/db-export.c index 5499887edc46..bb39a3ffc70b 100644 --- a/tools/perf/util/db-export.c +++ b/tools/perf/util/db-export.c | |||
@@ -289,7 +289,6 @@ int db_export__sample(struct db_export *dbe, union perf_event *event, | |||
289 | .event = event, | 289 | .event = event, |
290 | .sample = sample, | 290 | .sample = sample, |
291 | .evsel = evsel, | 291 | .evsel = evsel, |
292 | .thread = thread, | ||
293 | .al = al, | 292 | .al = al, |
294 | }; | 293 | }; |
295 | struct thread *main_thread; | 294 | struct thread *main_thread; |
diff --git a/tools/perf/util/db-export.h b/tools/perf/util/db-export.h index b9faa1386cf4..25e22fd76aca 100644 --- a/tools/perf/util/db-export.h +++ b/tools/perf/util/db-export.h | |||
@@ -34,7 +34,6 @@ struct export_sample { | |||
34 | union perf_event *event; | 34 | union perf_event *event; |
35 | struct perf_sample *sample; | 35 | struct perf_sample *sample; |
36 | struct perf_evsel *evsel; | 36 | struct perf_evsel *evsel; |
37 | struct thread *thread; | ||
38 | struct addr_location *al; | 37 | struct addr_location *al; |
39 | u64 db_id; | 38 | u64 db_id; |
40 | u64 comm_db_id; | 39 | u64 comm_db_id; |
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 1d3cc1b01731..5544b8cdd1ee 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -679,7 +679,7 @@ static int python_export_sample(struct db_export *dbe, | |||
679 | tuple_set_u64(t, 0, es->db_id); | 679 | tuple_set_u64(t, 0, es->db_id); |
680 | tuple_set_u64(t, 1, es->evsel->db_id); | 680 | tuple_set_u64(t, 1, es->evsel->db_id); |
681 | tuple_set_u64(t, 2, es->al->machine->db_id); | 681 | tuple_set_u64(t, 2, es->al->machine->db_id); |
682 | tuple_set_u64(t, 3, es->thread->db_id); | 682 | tuple_set_u64(t, 3, es->al->thread->db_id); |
683 | tuple_set_u64(t, 4, es->comm_db_id); | 683 | tuple_set_u64(t, 4, es->comm_db_id); |
684 | tuple_set_u64(t, 5, es->dso_db_id); | 684 | tuple_set_u64(t, 5, es->dso_db_id); |
685 | tuple_set_u64(t, 6, es->sym_db_id); | 685 | tuple_set_u64(t, 6, es->sym_db_id); |