Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754206AbbG2N6L (ORCPT ); Wed, 29 Jul 2015 09:58:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34018 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754073AbbG2N6K (ORCPT ); Wed, 29 Jul 2015 09:58:10 -0400 Date: Wed, 29 Jul 2015 14:53:29 +0200 From: Jiri Olsa To: kan.liang@intel.com Cc: a.p.zijlstra@chello.nl, acme@kernel.org, luto@kernel.org, mingo@redhat.com, eranian@google.com, ak@linux.intel.com, mark.rutland@arm.com, adrian.hunter@intel.com, jolsa@kernel.org, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 3/5] perf,tools: Dump per-sample freq/CPU%/CORE_BUSY% in report -D Message-ID: <20150729125329.GH9606@krava.brq.redhat.com> References: <1438082975-47730-1-git-send-email-kan.liang@intel.com> <1438082975-47730-4-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438082975-47730-4-git-send-email-kan.liang@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1145 Lines: 35 On Tue, Jul 28, 2015 at 07:29:33AM -0400, kan.liang@intel.com wrote: SNIP > > -static int machines__deliver_event(struct machines *machines, > +static int machines__deliver_event(struct perf_session *session, > struct perf_evlist *evlist, > union perf_event *event, > struct perf_sample *sample, > struct perf_tool *tool, u64 file_offset) > { > + struct machines *machines = &session->machines; > struct perf_evsel *evsel; > struct machine *machine; > > @@ -1053,11 +1079,12 @@ static int machines__deliver_event(struct machines *machines, > > switch (event->header.type) { > case PERF_RECORD_SAMPLE: > - dump_sample(evsel, event, sample); > if (evsel == NULL) { > ++evlist->stats.nr_unknown_id; > return 0; > } > + dump_sample(session, evlist, evsel, event, sample); same here, you could pass only session all the way through jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/