From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52F7EC00A89 for ; Mon, 2 Nov 2020 16:37:43 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CF6A022268 for ; Mon, 2 Nov 2020 16:37:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iEIEIjkK"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gca1O5x9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CF6A022268 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JfjKTz5Ak/iIChCnpiecRmF0hdTJEMs1ImbKsrlXweg=; b=iEIEIjkK1ayXAWOD5yiyMx8us RWP5jwhuMNQ4zuC7ewne0UBYT2FtLHQH31iXql6j4davg3D4EJCD1bKcYPHUz8hkfGUXqXPVLBh+c 3GmxeVnl2xtrLnHwEgu56Q1n/ypWYiIAVkkEpWjNDKfsoXgEQwUiSVQLiba8pCW/RgXFX6SinOUqz SmoPqT6x3LeQrxWD6HR1mTUdySubDUOBygI75J/HzxZsRkUnNmeRfvUe8WUjogyUkM7VVYj0FgBJ8 S2iKTXe8pGuF2Vc1scwnHePxPwuJFuxgL3GAJW3Qq3Oo9+I0Iy5G4avnz5K7hxpmSQh8O3iwig8xL R+4cX0l6A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcoX-0003ri-SC; Mon, 02 Nov 2020 16:36:13 +0000 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZcoV-0003qs-Hr for linux-arm-kernel@lists.infradead.org; Mon, 02 Nov 2020 16:36:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604334971; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9IEIX5FvfSSNZ7zMv2iBsljeEmNk8AhaSYR3sfQ7m8o=; b=gca1O5x9XWGOmjVdBD0kypc3A7CZCQYJwu9IsQeDFg642Sc+SM7Zs6ZXNNwBd2bluhCqdE quaqoDK9VqTlMRnx+QlICIiN7H4wbJpxFAjDzLzLSRVfhGLRFuMdVVdkk8ucQY0teWGCnF cacbOA1rB6xdurmyINZ/OLt3jQvQmj0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-29-0-mixDYdOuiPnshFjAzeFw-1; Mon, 02 Nov 2020 11:36:07 -0500 X-MC-Unique: 0-mixDYdOuiPnshFjAzeFw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5CF3B18A62A5; Mon, 2 Nov 2020 16:36:04 +0000 (UTC) Received: from krava (unknown [10.40.192.162]) by smtp.corp.redhat.com (Postfix) with SMTP id 686D55D9D2; Mon, 2 Nov 2020 16:36:00 +0000 (UTC) Date: Mon, 2 Nov 2020 17:35:59 +0100 From: Jiri Olsa To: Leo Yan Subject: Re: [PATCH v3 6/9] perf c2c: Support AUX trace Message-ID: <20201102163559.GB3405508@krava> References: <20201028063813.8562-1-leo.yan@linaro.org> <20201028063813.8562-7-leo.yan@linaro.org> <20201031202103.GA3380099@krava> <20201102100823.GB6633@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201102100823.GB6633@leoy-ThinkPad-X240s> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201102_113611_666110_64BDC618 X-CRM114-Status: GOOD ( 33.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Ian Rogers , Al Grant , Mathieu Poirier , Kemeng Shi , Peter Zijlstra , Wei Li , John Garry , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Alexander Shishkin , Ingo Molnar , James Clark , =?iso-8859-1?Q?Andr=E9?= Przywara , Namhyung Kim , "Naveen N. Rao" , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Nov 02, 2020 at 06:08:23PM +0800, Leo Yan wrote: > Hi Jiri, > > On Sat, Oct 31, 2020 at 09:21:03PM +0100, Jiri Olsa wrote: > > On Wed, Oct 28, 2020 at 02:38:10PM +0800, Leo Yan wrote: > > > This patches adds the AUX callbacks in session structure, so support > > > AUX trace for "perf c2c" tool. > > > > > > Signed-off-by: Leo Yan > > > --- > > > tools/perf/builtin-c2c.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c > > > index 4d1a08e38233..24f4af997aab 100644 > > > --- a/tools/perf/builtin-c2c.c > > > +++ b/tools/perf/builtin-c2c.c > > > @@ -369,6 +369,10 @@ static struct perf_c2c c2c = { > > > .exit = perf_event__process_exit, > > > .fork = perf_event__process_fork, > > > .lost = perf_event__process_lost, > > > + .attr = perf_event__process_attr, > > > + .auxtrace_info = perf_event__process_auxtrace_info, > > > + .auxtrace = perf_event__process_auxtrace, > > > + .auxtrace_error = perf_event__process_auxtrace_error, > > > > so this will process aux data, but don't you have to > > say which events you want to synthesize? > > > > like in script/report via --itrace option? > > Indeed, we need to assign "session->itrace_synth_opts", otherwise, the > tool cannot output synthesized samples. > > I tried to keep this patch set as small as possible, for easier > reviewing. > > Comparing to the previous patch set, I moved out the patch "perf > auxtrace: Add option '-M' for memory events" [1] from this patch set, > at the end my purpose is to introduce the itrace option '-M' to > synthesize memory event; and "perf c2c" tool can use memory event > for output result. Thus "perf c2c" needs to add itrace_synth_opts: > > struct itrace_synth_opts itrace_synth_opts = { > .set = true, > .mem = true, /* Memory samples */ > .default_no_sample = true, > }; > > > aybe arm differs from x86 in this, and it's happening > > in the background.. I have no idea ;-) > > There should have no any difference between archs for 'itrace' > behaviour. > > Since I moved the patch "perf auxtrace: Add option '-M' for memory > events" out from this patch set, thus I also left out the code for > adding itrace_synth_opts. This introduced confusion for reviewing the > change (sorry!), I will add back the patch "perf auxtrace: Add option > '-M' for memory events" and add itrace_synth_opts for perf mem/c2c in > next patch set. ok either way works for me, I just wanted to understand ;-) thanks, jirka _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel