lkml.org 
[lkml]   [2015]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 19/38] perf tools: Pass session to hist_entry_iter struct
Date
The session is necessary to determine whether this is an indexed data
so that it needs to use timestamp for searching threads/symbols.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
tools/perf/builtin-report.c | 1 +
tools/perf/builtin-top.c | 1 +
tools/perf/util/hist.h | 1 +
3 files changed, 3 insertions(+)

diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index cff357522358..0d6e6bff7994 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -139,6 +139,7 @@ static int process_sample_event(struct perf_tool *tool,
struct hist_entry_iter iter = {
.evsel = evsel,
.sample = sample,
+ .session = rep->session,
.hide_unresolved = rep->hide_unresolved,
.add_entry_cb = hist_iter__report_callback,
};
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 2c37bff901ba..f33cb0e2aa0d 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -776,6 +776,7 @@ static void perf_event__process_sample(struct perf_tool *tool,
struct hist_entry_iter iter = {
.evsel = evsel,
.sample = sample,
+ .session = top->session,
.add_entry_cb = hist_iter__top_callback,
};

diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 0098aad4a23c..0afe15ba0277 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -88,6 +88,7 @@ struct hist_entry_iter {

struct perf_evsel *evsel;
struct perf_sample *sample;
+ struct perf_session *session;
struct hist_entry *he;
struct symbol *parent;
void *priv;
--
2.2.2


\
 
 \ /
  Last update: 2015-03-03 05:01    [W:1.993 / U:2.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site