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=-11.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 10136C2B9F8 for ; Tue, 25 May 2021 12:59:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D65D86141C for ; Tue, 25 May 2021 12:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232952AbhEYNA2 (ORCPT ); Tue, 25 May 2021 09:00:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:44262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbhEYNAZ (ORCPT ); Tue, 25 May 2021 09:00:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CAB5F61420; Tue, 25 May 2021 12:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621947536; bh=IHLsay1yxDKFQojporc5Q7IlfrGGC3BXPTISSrdD2Wk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OWnr0fvvRu9qKRAmuHHruCmKWTH0QP0sCdMH45NwJpF51LgGDyK9Q22Zogoo3WvLc uwZjgwyFl/tbneWvz3wWg9lSk6tdU359E2zi4e0cJ/VWAbKRUI3T2TyD4y2Hb0Xu0U gantkPFGcOFAq/Z7EqxskvzKGEqpLoTDLeKzvhW0ASSHWYX5JlHLvWf5cavtmojyJL fCf9M2wtJcBLx5GYv6tROSRpHqekhn9B/TpTctw/IuV25e/MDLvM4Ry0itqgn81dHt 3ihC7CqQsP/YtYEIkcY4xEWAhjLQLL9DTe3yVntc6TdVZ39Gn2Io0Xkq/PdbCYimmb d+jdKVGDhgV/w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 5F8344011C; Tue, 25 May 2021 09:58:53 -0300 (-03) Date: Tue, 25 May 2021 09:58:53 -0300 From: Arnaldo Carvalho de Melo To: Adrian Hunter Cc: Jiri Olsa , Andi Kleen , linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/10] perf scripting python: Improve general scripting for Intel PT Message-ID: References: <20210525095112.1399-1-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210525095112.1399-1-adrian.hunter@intel.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, May 25, 2021 at 12:51:02PM +0300, Adrian Hunter escreveu: > Hi > > These patches make it easier to customize scripting for Intel PT traces. > > The first patch is a dependent fix. > > Subsequent patches add more information to python scripting. > > The final patch adds a branch trace to the intel-pt-events.py script > which previously supported only power events and ptwrite. Thanks, applied. - Arnaldo > > Adrian Hunter (10): > perf scripting python: Fix tuple_set_u64() > perf scripting python: Factor out set_sym_in_dict() > perf scripting python: Add 'addr_location' for 'addr' > perf script: Factor out perf_sample__sprintf_flags() > perf scripting python: Add sample flags > perf scripting python: Add IPC > perf scripting python: Add cpumode > perf scripting python: Add context switch > perf scripting python: Add auxtrace error > perf scripts python: intel-pt-events.py: Add branches to script > > tools/perf/builtin-script.c | 56 +++- > .../perf/scripts/python/bin/intel-pt-events-record | 4 +- > .../perf/scripts/python/bin/intel-pt-events-report | 4 +- > tools/perf/scripts/python/intel-pt-events.py | 143 +++++++-- > tools/perf/util/db-export.c | 12 +- > tools/perf/util/db-export.h | 2 +- > .../perf/util/scripting-engines/trace-event-perl.c | 3 +- > .../util/scripting-engines/trace-event-python.c | 321 +++++++++++++++------ > tools/perf/util/trace-event-scripting.c | 3 +- > tools/perf/util/trace-event.h | 8 +- > 10 files changed, 415 insertions(+), 141 deletions(-) > > > Regards > Adrian -- - Arnaldo