From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755172AbbCCDSu (ORCPT ); Mon, 2 Mar 2015 22:18:50 -0500 Received: from lgeamrelo01.lge.com ([156.147.1.125]:44560 "EHLO lgeamrelo01.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754682AbbCCDMT (ORCPT ); Mon, 2 Mar 2015 22:12:19 -0500 X-Original-SENDERIP: 10.177.220.203 X-Original-MAILFROM: namhyung@kernel.org From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , Frederic Weisbecker , Adrian Hunter , Stephane Eranian , Andi Kleen , David Ahern Subject: [PATCH 19/38] perf tools: Pass session to hist_entry_iter struct Date: Tue, 3 Mar 2015 12:07:31 +0900 Message-Id: <1425352070-1115-20-git-send-email-namhyung@kernel.org> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1425352070-1115-1-git-send-email-namhyung@kernel.org> References: <1425352070-1115-1-git-send-email-namhyung@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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