Received: by 10.223.164.202 with SMTP id h10csp1199961wrb; Wed, 8 Nov 2017 00:00:07 -0800 (PST) X-Google-Smtp-Source: ABhQp+QeX8+v5xSktxGa2qkadsAAcyvOo+o/+dzDxXI4FlI9Tv7sj+QwOFkkyqo4b6HAhs4h/Lj4 X-Received: by 10.84.179.194 with SMTP id b60mr1473301plc.275.1510128007367; Wed, 08 Nov 2017 00:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510128007; cv=none; d=google.com; s=arc-20160816; b=eNAF3aE+hqLBj+4vBCA+okETZS9BFAXJRIQkvTIxaGgWAgMPZEgRvE5YCqiS0/gUbq p7CZAPZsyasvJ3MIDE0R0d0XofzS0Puhn4rXduEgkiGVG//VBwBPASZx7pwQW1yARU2r wzYplOjUTwMR/GccAvedJFxD2vYgM7P/90Fp4tEp45+8Jwq6lw6mVfCA+kw0uGxsjk16 xk7XtwVn7jImgg4xvjstDMBs592Ueen331slN814l7J8X0UNA1ZEpi2BdlnsSdoI7YO9 kwIP0fPgW1RHJT7Ve48w4osGrU3cbQjohy9xQb6XGQUk8GRUSzHNq5s+T9F6qBnpxMRW rvpQ== 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=wZGud35HvNhpVIHwF3xh03v+mPyLb58UBpMp3HDsh5k=; b=vIzlTiQr1azkae8VEkoJ9i4A7godS0jBeOK/ncTNg4yyadGYGXJWgWDTaIgUX64HPm vmiwo3Yq17Js/qzHIe4E9B/Y97b2MhMcdoGtJAJBBOI8efs//wJR9+Y5/om6Xv7ZH7wu VZBd9geJIC9eSulVY+S2WgMNZXcVuGjxVG9x9exTCWk+KUckSiYYyS26xuF8wfjJwlk2 ctQT7OkKFw6ri5jD4kikd62znx75JFh/OzU0ot/pyVBjrQk02hEDF1jxzvqyc6/vcm++ ldtrFJ3Q8BNcj5JvO8YsXNf27Eypnm+Wbp6fgkH7saDC4muMZmt1r+C0m/gjEI3ECjsF GqPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=l+zNK5OA; 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 j7si3141905pgn.37.2017.11.07.23.59.54; Wed, 08 Nov 2017 00:00:07 -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=l+zNK5OA; 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 S1751499AbdKHH6c (ORCPT + 89 others); Wed, 8 Nov 2017 02:58:32 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:43758 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbdKHH4t (ORCPT ); Wed, 8 Nov 2017 02:56:49 -0500 Received: by mail-pl0-f67.google.com with SMTP id t7so795094plm.0 for ; Tue, 07 Nov 2017 23:56:49 -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=wZGud35HvNhpVIHwF3xh03v+mPyLb58UBpMp3HDsh5k=; b=l+zNK5OA6fSIvCaJnqPXyVCVwn6O+cK0xVD/KHrPGvOBplg3PDrqIgI23Q6xvv/GCB 2dMK9ka61kfj/T8x1ntAFaU1/bfOKJWGNplWk/CP/ZcWnVtMZ0bMyXnO7EnqHkNd3Zh6 tXKIcKOI9x1zfFYClRWQ9P4XJNaARI24JYRkQRP6yISjrIPqBeEKyo8VB58mXQ4my0pv 3bhegnGYvLq3hvbc6Vs3WC2HuBDglB4javgJWZ4/wMutbZsiDLze5raZ+ehEHeUN7heP mqw57YltuGIC7eEs/e1vaGmmyUWJ0JividKg6niXcmuwjtdyHvpUMOiHhMnaI+PrCn/k AmIA== 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=wZGud35HvNhpVIHwF3xh03v+mPyLb58UBpMp3HDsh5k=; b=ty1c0nQIP9BPtcUXVIwdcnMiBfR/a8SZBz0c+Cvoy7evTlUwqF8SD4dC2PCnahJkhq GI2v8PI7Kyoxt9TPU81lOEjtOL+XSnN7+H75gX1rslPimhlCaMNzT2zYey4R5V0pw8oz KpvRE5hzhRTm+J9vBFv3TS6cJ9Q1WG2iK++bqkCoiYbB/SUw7BCjjuwpJ9RO2hZ6MB9B zfyMRY1q8QrLFXevM4B42wAvWIo+WvJM5YQ5MHwUTY2PP5Wb5XkTdz25oY3qS6F0iA4P 9T2fkNP9iL4bK0FUfBeqDmWi1e6cy1umP4B/ZaLDkNH/TqfteLGCA1Uf9ea+Ubsb5mJf hWMw== X-Gm-Message-State: AJaThX6se2ZA7UtfUgVCHVB/tpURT+VW/9t1WFnKhVjdwLVmuFP1F6h0 F0/ufKTcmcUFY2bsRf0z2Kr08PTjTH8= X-Received: by 10.159.218.9 with SMTP id v9mr1411822plp.92.1510127808229; Tue, 07 Nov 2017 23:56:48 -0800 (PST) Received: from localhost (c-67-169-55-77.hsd1.ca.comcast.net. [67.169.55.77]) by smtp.gmail.com with ESMTPSA id q77sm6884902pfd.84.2017.11.07.23.56.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 23:56:47 -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 v3 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS Date: Tue, 7 Nov 2017 23:56:34 -0800 Message-Id: <1510127797-22483-3-git-send-email-eranian@google.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510127797-22483-1-git-send-email-eranian@google.com> References: <1510127797-22483-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 support for SKID_IP for Intel x86 processors when PEBS mode is enabled. 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..52866a470b0d 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 + * dynamic 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 1583364856316342283@xxx Tue Nov 07 00:26:36 +0000 2017 X-GM-THRID: 1583364856316342283 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread