Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp452216ybl; Fri, 9 Aug 2019 08:26:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9Iqdt+lvKkJyJ+2SXRqzSJJAyF/7WVQvy4M33OyleYg0e/38XC3N5E+KnTwgirXdE0sWj X-Received: by 2002:a17:902:c509:: with SMTP id o9mr19888679plx.222.1565364377028; Fri, 09 Aug 2019 08:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565364377; cv=none; d=google.com; s=arc-20160816; b=tl3zp067XX2eanmnn4jI4PZe8ucVDYGcocOe9K++y3ZjPcArnYcz71319Gy+iBFx/f qOS5BaLDETUXcVteBxgl9WRiFrMvdVBYKP9VO3yai1C3RLf3hZI2ffI7fxiNAHXUD/G9 A7U62xHEpV5eYV3Ul+VKDvnrYWUAjNmhax04CCdOHG4BD+K3yimOziE1MllYvGZuSPAQ sOrFUoAc/cV2pDkxz4K9Go/8RAkUFFkYCbBK4h9VU1KyvOUhkWP70SNbWqtKeKF8eoLY slCWap4eHyePj0k6yxBWovH45ddY4x9TkMPP2DB2CgRP7scxNYqAzGck2JR7VgvViJa8 I6hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject; bh=GuMv8Nt87BQsVcAeuxodD16WCjpQpm+FUlWo6pMBSOE=; b=KC+UhtU8nAOal01XIfe2Q+7l+Q6qWuqmzaaLb2Rl0Dh5hei9mn3yhxVrMGkYN/UoVr BaNkCyezhWVcN0HmRI90do/ZXwbATou4qNXEjGlfmLiV7ZkBq/qkexrZsrScabnorrbW 7IEQB3gmoklRdtOXqene9jd6mjnJtQlpQ6cCyATZzsM5as1n3bQe9iLwS7V3DE+fLX+V yj2SkVwZBbc+gJ7Sg7eJTz5gpUm5I8B2wi4CfhABgNQfuFKycaVrO+cigACAG8Cu25pr uGJ9JzymQzogniX0/SKpBysReZC/hzXp62UxN5KGfMhm5EsCvpZkFfEm/HBcrIdLRXQw PmmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q2si4725879pjv.99.2019.08.09.08.26.00; Fri, 09 Aug 2019 08:26:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2407355AbfHIPYD (ORCPT + 99 others); Fri, 9 Aug 2019 11:24:03 -0400 Received: from mga02.intel.com ([134.134.136.20]:38882 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726463AbfHIPYD (ORCPT ); Fri, 9 Aug 2019 11:24:03 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Aug 2019 08:24:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="182932690" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 09 Aug 2019 08:24:02 -0700 Received: from [10.252.0.91] (abudanko-mobl.ccr.corp.intel.com [10.252.0.91]) by linux.intel.com (Postfix) with ESMTP id 5EFF6580417; Fri, 9 Aug 2019 08:23:59 -0700 (PDT) Subject: [PATCH v1 1/3] perf record: enable LBR callstack capture jointly with thread stack From: Alexey Budankov To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ingo Molnar , Andi Kleen , Kan Liang , "Jin, Yao" , linux-kernel References: Organization: Intel Corp. Message-ID: Date: Fri, 9 Aug 2019 18:23:58 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable '-j stack' applicability together with '--call-graph dwarf' option so thread stack data and LBR call stack could be captured jointly: $ perf record -g --call-graph dwarf,1024 -j stack,u -- stack_test Signed-off-by: Alexey Budankov --- tools/perf/util/parse-branch-options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/parse-branch-options.c b/tools/perf/util/parse-branch-options.c index 726e8d9e8c54..4ed20c833d44 100644 --- a/tools/perf/util/parse-branch-options.c +++ b/tools/perf/util/parse-branch-options.c @@ -30,6 +30,7 @@ static const struct branch_mode branch_modes[] = { BRANCH_OPT("ind_jmp", PERF_SAMPLE_BRANCH_IND_JUMP), BRANCH_OPT("call", PERF_SAMPLE_BRANCH_CALL), BRANCH_OPT("save_type", PERF_SAMPLE_BRANCH_TYPE_SAVE), + BRANCH_OPT("stack", PERF_SAMPLE_BRANCH_CALL_STACK), BRANCH_END }; -- 2.20.1