Received: by 10.223.164.202 with SMTP id h10csp607848wrb; Wed, 8 Nov 2017 23:58:31 -0800 (PST) X-Google-Smtp-Source: ABhQp+QwF265rjhUZeaB6nqIqkOOQENn0juRXgkm4Kj6rZ8DAz4EirXEWQsE3c8fOOh3FXH0Ytbj X-Received: by 10.101.76.139 with SMTP id m11mr3143251pgt.103.1510214311610; Wed, 08 Nov 2017 23:58:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510214311; cv=none; d=google.com; s=arc-20160816; b=vp1+1pTre/Oe/In3hgDHzOvvB+0SZkDrZTtm0vLN5U4rXV1w7xoUvk6I3pFoFIpPzN LXeqnyG4pFgUbkPTIZwovr9guYWLivjZI2T3I/s/P8Z1U9zZTnRxzg7KszXHLDFvH2sk HGOTe0IJcIDqXJpCjMoqzgdOzmXWhwRW71LHWIBN31JlLmckZehJ2NldoL4yJT82FFg3 F57Zkno6K49HKVVFLY2kcuqw+BUY4QOeZuLfIyad1Gmx7k6OUWNuvG0mVl/s83sONfbL sgKIXx4t8whHYl+wGNuhqxtDk/W4v8xaZYAziv7jR+sj0a8sU9BGfPqtdpHo7oB4hyvP 3jVg== 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=6cxXzFRzVnFErdGEXtea5gEHivaA+jaPArUyVWjNqKQ=; b=ONLGM7r0QLJP6sOAT3qkn1TnS67cMdrJc5Nuz3ImKyXwHgw7yyOnDFPWOlq+SRegaV fQZuW42vASlEUBHOro47T55XcZebMuApo3Bw2NCDELMzYdW2Y55M2BjbEBmR69VQSCQ9 C1i92rYQOLjj5Ik7ojmXGCTqSeA+EvEWOLXBrcSu/3/BKSP5xkh7l0UJVg1PWbEUOS2e oWgbnt6SFL2yYZ16Tx3ev9EZBNokk6g96+frzjL+HAmgF0STj4m7l9pC2iG5BGgynS7m CE0AYiPOQgchJ/Pop2WBmgGgVesZvQwCCP+64JsPQ/XcdtHTPLqbUZpgj/+QYinAnzc/ CGTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=a+A04CP7; 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.08.23.58.20; Wed, 08 Nov 2017 23:58:31 -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=a+A04CP7; 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 S1753213AbdKIH5b (ORCPT + 82 others); Thu, 9 Nov 2017 02:57:31 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:49103 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753110AbdKIH5Y (ORCPT ); Thu, 9 Nov 2017 02:57:24 -0500 Received: by mail-pg0-f67.google.com with SMTP id v78so4077144pgb.5 for ; Wed, 08 Nov 2017 23:57:24 -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=6cxXzFRzVnFErdGEXtea5gEHivaA+jaPArUyVWjNqKQ=; b=a+A04CP7zrlCdHxkd3bNz2sBVR1GOELnn6DYrPcvAQ7tVRCSHzqgOJ5l2sy9HDtfaT ZQhCtJOSR/FekPnT11BfBzq7FDcNf+dEcBClKRoly5FLznpESsdde2aRF7CtFCGNOiZD obqneLJZb93hPz8oouFT3tNozhL4n/FGzdxiBI8Cn0HlymVOWIFYGzfBXKg9RLH5xHWs kNtFpnr2hMdWo+OFVpKrT2sKVkoHfPd+2ydpLEYq5MIDFluz4e4GqQuuOzcrDDT4z65a ELh/ReIIoA+b2+MzdENA3qfnbaIeKEYpbGlmbF4u3KMb5Es+b3/vZ4r/c10oohuVdqFQ JOYw== 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=6cxXzFRzVnFErdGEXtea5gEHivaA+jaPArUyVWjNqKQ=; b=hrDNb+IsGt9Wv/2A8CxgH4Xtw4sGuEnlQyGnL4rT2QtyKLkhqrBv/2HEjjs3x2HAdv K6TqILV9xzpZ/U/z89E2RGk9l8jFAhkTWb0zKD7JeqyKzD0gdiifm5MR5xP8jr4l6sTz CnNDjErNc1GTYrQDuYyyQvOUBMIRrmP1rbjoCq7VS7CObilrIJeJGeufOrg1dvjFZNzN 58LUthWZjWXUqU7eLb/m1atF/ZU4YNG/wQEP5mMVoCdyYdeldpasHS9AdcdJuoSPUP45 6waJLRyfCC64RsjaRyeT7vF9p1jE+Upa6Sf+wPtvctqg65tA7rzXycWl5mnM5GnP02TQ daSw== X-Gm-Message-State: AJaThX4vfh1tQLHigqTpCis1+qzz1aVlpN8UU1geLsxc1Lki0IO/48jS dnOhp0TO1XTwckpceLhfetxq0FhNaNQ= X-Received: by 10.84.174.4 with SMTP id q4mr3066701plb.233.1510214243455; Wed, 08 Nov 2017 23:57:23 -0800 (PST) Received: from localhost ([172.56.39.30]) by smtp.gmail.com with ESMTPSA id l17sm3233062pgu.34.2017.11.08.23.57.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 23:57:22 -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 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS Date: Wed, 8 Nov 2017 23:57:10 -0800 Message-Id: <1510214233-2074-3-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 atch adds support for SKID_IP to Intel x86 processors in PEBS mode. Signed-off-by: Stephane Eranian --- arch/x86/events/intel/ds.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c index 3674a4b6f8bd..dd248ceda452 100644 --- a/arch/x86/events/intel/ds.c +++ b/arch/x86/events/intel/ds.c @@ -1190,6 +1190,13 @@ static void setup_pebs_sample_data(struct perf_event *event, x86_pmu.intel_cap.pebs_format >= 1) data->addr = pebs->dla; + /* + * unmodified, skid IP which is guaranteed to be the next + * dyanmic instruction + */ + if (sample_type & PERF_SAMPLE_SKID_IP) + data->skid_ip = pebs->ip; + if (x86_pmu.intel_cap.pebs_format >= 2) { /* Only set the TSX weight when no memory weight. */ if ((sample_type & PERF_SAMPLE_WEIGHT) && !fll) -- 2.7.4 From 1591089163189718077@xxx Wed Jan 31 06:41:10 +0000 2018 X-GM-THRID: 1583044162650686556 X-Gmail-Labels: Inbox,Category Forums,Downloaded_2018-01