Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1684100pxk; Fri, 18 Sep 2020 21:46:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEFfs1xID4p91yMI+wHEEDqXOeOTxzJVUEXUxal0fvjnSN44mlFX2luOlnwHygkGtLp+/O X-Received: by 2002:a17:906:8399:: with SMTP id p25mr38988952ejx.243.1600490778366; Fri, 18 Sep 2020 21:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600490778; cv=none; d=google.com; s=arc-20160816; b=Z3DuEsS/5nc+TgPhE6zWFCtXYh+BJjyRgCAe5dAPFi4Q5o/fHLfGj7+QGUJRKPOPH4 zfH0xpwV1gvOEcl7PyrQqgQ5Ks7FMA67Wk1TqM70DYrj7qo1cGMEQNDXNYSToQFQsEe4 q2EtNGBBcw1nTwG11RIv/431ZryaK0LXLbzY+ElXvx79n7Sezd1BRA7ojEmGEH65TRqb Z0e+YfbBufuNmbsIrmhBiV4ZoZGmDGwvAlF2gAi2p23WBA8nDxkOkCd2vT97OWlKFIUy 2WHOL2iyfgt++9/rrI8eqnLdtJ1XUALm0S0AREMAu9yh9VcWeBvnXLf78tF4V0aupOIZ 5Vqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=dION5KlPsABmOFAcFN4Q8oQGrFx9RtWTbt3pO8Znzew=; b=iTGIGk2evmYLTZtXCTJz90PJTXBndlgLw68x+JpOLC6xdSCf2d9Fq3I/gniQxZtvcW eu4/772p6En+edKzPvZRbiD91BIMoNz//xuyFdN+2t1sAydwZ9J8G6/VhvwA+fbI39lu 2b7I+Vj9lu2IrdK7E3vGzlUNvFd90NjzinU6G0EYnixxYnSBIyYJ3uOXRhDMyTZcdj+k biF8rdwb+YAiUf9pOWAShuCaTdXAx+e6X2x1Hfy8sUxK+A7kZAeUUsgxLctDL4caHqZW Mdhdp410chEiyipSfcBk0gDHfuL6fXMshFzLyOOWrdum5I0qOfy/aMp5MlN2dCu3Ng3V /cYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si3580332eje.585.2020.09.18.21.45.54; Fri, 18 Sep 2020 21:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726201AbgISElm (ORCPT + 99 others); Sat, 19 Sep 2020 00:41:42 -0400 Received: from mga01.intel.com ([192.55.52.88]:33386 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgISElm (ORCPT ); Sat, 19 Sep 2020 00:41:42 -0400 IronPort-SDR: JzDx9/Fhm+dm3OltN9re6Q9bjSxlxP7aoidCdtxMJf9nEehLww9v4AorCK1SdwQTFb/1672T3h p9PFlikqXIGA== X-IronPort-AV: E=McAfee;i="6000,8403,9748"; a="178174530" X-IronPort-AV: E=Sophos;i="5.77,277,1596524400"; d="scan'208";a="178174530" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 21:41:40 -0700 IronPort-SDR: FZO4zry5E3lC/lD57kae2WKPUEbNew3ayKjxPiQoqYW1esrLoPBjDGl4pYL2eHUOVy7/YqWv7p Gf3AlvWKxNWg== X-IronPort-AV: E=Sophos;i="5.77,277,1596524400"; d="scan'208";a="453028905" Received: from yjin15-mobl1.ccr.corp.intel.com (HELO [10.254.214.1]) ([10.254.214.1]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 21:41:38 -0700 Subject: Re: [PATCH v6 7/7] perf diff: Support hot streams comparison To: Arnaldo Carvalho de Melo Cc: jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com References: <20200911080353.13359-1-yao.jin@linux.intel.com> <20200911080353.13359-8-yao.jin@linux.intel.com> <20200917202608.GF1431236@kernel.org> From: "Jin, Yao" Message-ID: Date: Sat, 19 Sep 2020 12:41:35 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200917202608.GF1431236@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On 9/18/2020 4:26 AM, Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 11, 2020 at 04:03:53PM +0800, Jin Yao escreveu: >> This patch enables perf-diff with "--stream" option. >> >> "--stream": Enable hot streams comparison >> >> Now let's see examples. >> >> perf record -b ... Generate perf.data.old with branch data >> perf record -b ... Generate perf.data with branch data >> perf diff --stream >> >> [ Matched hot streams ] >> >> hot chain pair 1: >> cycles: 1, hits: 27.77% cycles: 1, hits: 9.24% >> --------------------------- -------------------------- >> main div.c:39 main div.c:39 >> main div.c:44 main div.c:44 >> >> hot chain pair 2: >> cycles: 34, hits: 20.06% cycles: 27, hits: 16.98% >> --------------------------- -------------------------- >> __random_r random_r.c:360 __random_r random_r.c:360 > > Would it be interesting to get the associated source code and show right below > these file:number lines? > > - Arnaldo > I'm thinking we can implement this function in callchain_list__sym_name(), and then all callchain functionality will benefit from it. While that looks to be another patchset. :) Thanks Jin Yao