Received: by 10.223.164.202 with SMTP id h10csp609217wrb; Thu, 9 Nov 2017 00:00:15 -0800 (PST) X-Google-Smtp-Source: ABhQp+RHUOrXOwFzcIpJuN5OdpaRs8pS0DSrmjR7vFS1kXkZJt5KN7CXSOD+pZXCH7pfFeKXA5Wn X-Received: by 10.84.192.3 with SMTP id b3mr3103952pld.118.1510214415281; Thu, 09 Nov 2017 00:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510214415; cv=none; d=google.com; s=arc-20160816; b=ZlBCDOzBEEqQJoBkz0tvVnRXMFjiESP5Ziu8Df8ZZ9SOEtBeqz7mKYogu7IetQ9wkF mLQxPsV78p7isIy8X/J8xRwuYhb8tBon9+W3Ca1n4oljFw/+AafWMFAOVnP4HIU8fbD7 GTMmdLnOkTkzvRxvkV413wKNiXiZM6DZuPDQiJCNnD+HbaOcHVzeTfsX38XZ+T0B5Lpk rZt6yfxnaXkJhGHpObt/c630pLNJ2f7bKHtzNAKXsK41ljJC7DSxyPpMKgqp4munW7M3 YvTyRjLuZuEyVzS1PZbhVGCTqgZw+1emSmaaR33MTRDWSNhx70irACvO3A4m39TQ2TH9 6yZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=9IrIbS8p4J8hB5e31OiMf45p6s98OmE25DF7LGh0IaE=; b=FF/FeM1dcI5Xjqxxo962FsB8U0KMn5coV9rBrHdcbgNbAngVgft+i38V548bkDOjfM ktLtzdXv3JWvW7Xlhjol3aSqGZXqpbjTQ4Sa1I4gInCuEOB/r2Kar/JUXYQF3i5bJ/OU 3IB6dP9u2rEQCyShLpz4YTw1S15ccfJhzyQzd1gYNxRG0ShjNqu5lB+a6Maq7O6U0QQy 0Qrbk6W34N/x98ZBmcGyGwcJ7xSeBNmiYGrbfz4h1EuCOLh4TTm52gq5sSxPXG6UstLV YiVi/LtCQ+ohL+xB0wytEraL6ldl6Y/Qp5J62Ji0wA7e6z9l6pofRIFaDLxUYVd5OAG8 E5SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=AyjCYnc/; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si5759709plh.3.2017.11.09.00.00.04; Thu, 09 Nov 2017 00:00:15 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=AyjCYnc/; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753248AbdKIH6F (ORCPT + 82 others); Thu, 9 Nov 2017 02:58:05 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:49109 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170AbdKIH52 (ORCPT ); Thu, 9 Nov 2017 02:57:28 -0500 Received: by mail-pg0-f68.google.com with SMTP id v78so4077233pgb.5 for ; Wed, 08 Nov 2017 23:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9IrIbS8p4J8hB5e31OiMf45p6s98OmE25DF7LGh0IaE=; b=AyjCYnc/TDZIc4vhJFtYy0mtoX0IbPc2dgHLl1GiU5NlI5HAA2AL1SmXLzJX6/t2Wy cO65PSMUnROenTQui5wVojIWMycpCCfkkla7OhKfdZeYMsptrnpd0vyByRvto120JYz0 BtEdxTeA+jlIfhDYthIMSyCgQWjKcp+HH4ONcRJFXJNYPA2LXbmtCITNfVZwQHSiZZoT MBJnY8NP9CsozL3Y1qeRi0Xriq1ajJY/4quqLk7SzB3o1aTVNzazF9JjDvbzY/ArZMzA TY0BVu9gpW5Dv0P65T0Fv4meX2O5VoCetPnzw9ShvRpB2fMpOt2F74tS7UTDQNFnNcCz M8Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9IrIbS8p4J8hB5e31OiMf45p6s98OmE25DF7LGh0IaE=; b=SSCBzmKhB3DmnZc1MbotSKPun/tan3SIsmz60Ctb6abmLblhYcj+lonfH577eECCre 6VfPS5l0L1vvhtaiw8s4HavsD/ZeKGFGZfdO5m05X9qlxWcBdDmcvPybS41L4va1SFJ5 b0HPdwNAMI1481r8qgTGXuieksnJiN50WmEviwMu76mX1aDv7Z2ltOzL1DbCeiQmquzv Y8Qi/LKo2L20sR8gmsJKyuFPwftTOm6UMo3IaGxpSxi9AmbiRtW6lx3pMDQBmASCADBV 8XJ8BxPog60+5LzwMNCxOXL4Ga/ngkgBMDVc1pdyFWMLrjOuI5zuxOh+d1KjS68o8eGv RIZQ== X-Gm-Message-State: AJaThX5QjqvPiJlexPoczZ1QssNB1ySPsbWH2iIf3SeZtD76Wraooytc OcjLkknKrlAxFiPISnTiz3a8fGRNlz8= X-Received: by 10.98.76.147 with SMTP id e19mr3290820pfj.73.1510214247265; Wed, 08 Nov 2017 23:57:27 -0800 (PST) Received: from localhost ([172.56.39.30]) by smtp.gmail.com with ESMTPSA id b2sm9175528pgt.14.2017.11.08.23.57.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 23:57:26 -0800 (PST) From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: acme@redhat.com, peterz@infradead.org, mingo@elte.hu, ak@linux.intel.com, kan.liang@intel.com, jolsa@redhat.com Subject: [PATCH v4 4/5] perf/record: add documentation for using PERF_SAMPLE_SKID_IP Date: Wed, 8 Nov 2017 23:57:12 -0800 Message-Id: <1510214233-2074-5-git-send-email-eranian@google.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510214233-2074-1-git-send-email-eranian@google.com> References: <1510214233-2074-1-git-send-email-eranian@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds documentation to describe how to use the skid ip support with perf record. The sample type can be provided per event as follows: pmu_instance/...,skid-ip=1/ For instance on Intel X86: $ perf record -e cpu/event=0xc5,skid-ip=1/pp does record the precise address of retired branches and their target. Signed-off-by: Stephane Eranian --- tools/perf/Documentation/perf-record.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt index 5a626ef666c2..f0e3636dc4be 100644 --- a/tools/perf/Documentation/perf-record.txt +++ b/tools/perf/Documentation/perf-record.txt @@ -57,6 +57,14 @@ OPTIONS FP mode, "dwarf" for DWARF mode, "lbr" for LBR mode and "no" for disable callgraph. - 'stack-size': user stack size for dwarf mode + - 'skid-ip' : boolean, captures the unmodified interrupt instruction pointer + (IP) in each sample. Usually with event-based sampling, the IP + has skid and rarely point to the instruction which caused the + event to overflow. On some architectures, the hardware can eliminate + the skid and perf_events returns it as the IP with precise sampling is + enabled. But for certain measurements, it may be useful to have both + the correct and skid ip. This option enable capturing the skid ip in + additional to the corrected ip. Default is: false See the linkperf:perf-list[1] man page for more parameters. -- 2.7.4 From 1583576245620215019@xxx Thu Nov 09 08:26:33 +0000 2017 X-GM-THRID: 1583576245620215019 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread