aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-04-02 10:08:30 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-04-02 12:18:42 -0400
commit7327259d7ea96d04d02e7dbe51ee9201319dc204 (patch)
tree23228728bad8d9ee63561f7a12dccdf17187a2b7 /tools
parentf9d5d549d2c2934be84b0bc7e5e034834459f591 (diff)
perf db-export: No need to pass thread twice to db_export__sample
As it is available via another parameter, address_location->thread. Acked-by: 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: lkml.kernel.org/r/551D08F8.3040706@intel.com Link: http://lkml.kernel.org/n/tip-6dbn0tcm9hyv92g7h3zj2dbt@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/db-export.c3
-rw-r--r--tools/perf/util/db-export.h2
-rw-r--r--tools/perf/util/scripting-engines/trace-event-python.c3
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/util/db-export.c b/tools/perf/util/db-export.c
index c81dae399763..5499887edc46 100644
--- a/tools/perf/util/db-export.c
+++ b/tools/perf/util/db-export.c
@@ -282,8 +282,9 @@ int db_export__branch_type(struct db_export *dbe, u32 branch_type,
282 282
283int db_export__sample(struct db_export *dbe, union perf_event *event, 283int db_export__sample(struct db_export *dbe, union perf_event *event,
284 struct perf_sample *sample, struct perf_evsel *evsel, 284 struct perf_sample *sample, struct perf_evsel *evsel,
285 struct thread *thread, struct addr_location *al) 285 struct addr_location *al)
286{ 286{
287 struct thread* thread = al->thread;
287 struct export_sample es = { 288 struct export_sample es = {
288 .event = event, 289 .event = event,
289 .sample = sample, 290 .sample = sample,
diff --git a/tools/perf/util/db-export.h b/tools/perf/util/db-export.h
index adbd22d66798..b9faa1386cf4 100644
--- a/tools/perf/util/db-export.h
+++ b/tools/perf/util/db-export.h
@@ -97,7 +97,7 @@ int db_export__branch_type(struct db_export *dbe, u32 branch_type,
97 const char *name); 97 const char *name);
98int db_export__sample(struct db_export *dbe, union perf_event *event, 98int db_export__sample(struct db_export *dbe, union perf_event *event,
99 struct perf_sample *sample, struct perf_evsel *evsel, 99 struct perf_sample *sample, struct perf_evsel *evsel,
100 struct thread *thread, struct addr_location *al); 100 struct addr_location *al);
101 101
102int db_export__branch_types(struct db_export *dbe); 102int db_export__branch_types(struct db_export *dbe);
103 103
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c
index de8df1d5e1bd..1d3cc1b01731 100644
--- a/tools/perf/util/scripting-engines/trace-event-python.c
+++ b/tools/perf/util/scripting-engines/trace-event-python.c
@@ -852,8 +852,7 @@ static void python_process_event(union perf_event *event,
852 /* Reserve for future process_hw/sw/raw APIs */ 852 /* Reserve for future process_hw/sw/raw APIs */
853 default: 853 default:
854 if (tables->db_export_mode) 854 if (tables->db_export_mode)
855 db_export__sample(&tables->dbe, event, sample, evsel, 855 db_export__sample(&tables->dbe, event, sample, evsel, al);
856 al->thread, al);
857 else 856 else
858 python_process_general_event(sample, evsel, al); 857 python_process_general_event(sample, evsel, al);
859 } 858 }