Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7276079imu; Wed, 14 Nov 2018 14:42:01 -0800 (PST) X-Google-Smtp-Source: AJdET5cvKqBxM008cHFZ56cqYiA02k8l053BsXDLmHjEVv2bo0yvCSd8v285P+Zt7nkRiqhbQGuW X-Received: by 2002:a63:e247:: with SMTP id y7mr3354663pgj.84.1542235320966; Wed, 14 Nov 2018 14:42:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235320; cv=none; d=google.com; s=arc-20160816; b=B6+paIq3MXDJfSGEhUMFo3B5rjFsXzznc9xMGysv9yg4ErjawmIjaJWO4VOjepvRAX MPREIEbsRckmUJ6/Hfw72no6ZCn3T2Sn+mVY9dzSiGvly904dYHwHJHYf+FRlctTq5ke 0BxqSQSeSO0QjbsccHzwXvlrBmPoFsqPFVK/7tMbpn1fbsVXdDA6U+sXtilG9Q45mSmv BX/mIxF8ygY4Mdh5fxIVu+RP+VCd+CUFSfufT2vLPlTYXrMAdOdbp9frH0rtyK7Qgk8P ITR/bYJof1TAaU4+6Dgm1AEIMPb/F+EqFhWmdgnrtfs5PZNIJ51l08918ugLOueGpnXj OvcA== 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; bh=xwks1Xou9UG3vswV5F5M4sKEOfCQ4UjqErQ6zyegZ54=; b=VsQv+0dM1k25B/rM7NUaFWdzARq9xcG3WBqYDmIZgn1e5fgBQ4HiNGLmP3EllqF9aJ nDmgLDP2Axwe+29rqRnOnc+iNs0aajgOqJegCpoh7c8v0XXMUfDIrRxzNW/HCZaEtYpS TyezQq9CeLW+gsHAvFzzQLR39IkVPE+9hC5y6PJp/xn4HQGed/KslulloShy6LCopUdY QhyJAHStDLYP3STlOu33uXR8LF22E6D2r1O56a+t3kJsl0fMrpQ1MvPxMCNXdygzMtXW /UjJM5I2aCC04BCpQmZxkP/UhwQfvQXkS/bY1C0ZczyK0BK2BcHMDpYZ2OydGIlg2Kvj NVgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oyNaifWc; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 127-v6si28101135pfg.268.2018.11.14.14.41.46; Wed, 14 Nov 2018 14:42:00 -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=@kernel.org header.s=default header.b=oyNaifWc; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729017AbeKOI1Z (ORCPT + 99 others); Thu, 15 Nov 2018 03:27:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:34416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728926AbeKOI1Y (ORCPT ); Thu, 15 Nov 2018 03:27:24 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4373A2251D; Wed, 14 Nov 2018 22:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234141; bh=UBO9kAgyTVUU7MByzRuqWE7fR4omgWg605UBdRQ6tPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oyNaifWczzwsvDA+HqqTzUzHvSsJkqV8rA/rMzJVgxRoEGoCC04SQyNYUto8D/dsx rzeHFH5dNosMloKJBDDbfIi2OOCiUi1OhjsQO1WwIR/0hl6osXSQwdz2D+GGSa1C2m BN8lVnL2yHkDanuvF0Ij3e2ahAziw0b3JbnnCnfg= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jiri Olsa , Alexander Shishkin , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH AUTOSEL 4.19 54/73] perf tools: Do not zero sample_id_all for group members Date: Wed, 14 Nov 2018 17:21:48 -0500 Message-Id: <20181114222207.98701-54-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Olsa [ Upstream commit 8e88c29b351ed4e09dd63f825f1c8260b0cb0ab3 ] Andi reported following malfunction: # perf record -e '{ref-cycles,cycles}:S' -a sleep 1 # perf script non matching sample_id_all That's because we disable sample_id_all bit for non-sampling group members. We can't do that, because it needs to be the same over the whole event list. This patch keeps it untouched again. Reported-by: Andi Kleen Tested-by: Andi Kleen Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20180923150420.27327-1-jolsa@kernel.org Fixes: e9add8bac6c6 ("perf evsel: Disable write_backward for leader sampling group events") Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/tests/attr/test-record-group-sampling | 1 - tools/perf/util/evsel.c | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/perf/tests/attr/test-record-group-sampling b/tools/perf/tests/attr/test-record-group-sampling index 8a33ca4f9e1f..f0729c454f16 100644 --- a/tools/perf/tests/attr/test-record-group-sampling +++ b/tools/perf/tests/attr/test-record-group-sampling @@ -37,4 +37,3 @@ sample_freq=0 sample_period=0 freq=0 write_backward=0 -sample_id_all=0 diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index e596ae358c4d..03a72310315f 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -952,7 +952,6 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts, attr->sample_freq = 0; attr->sample_period = 0; attr->write_backward = 0; - attr->sample_id_all = 0; } if (opts->no_samples) -- 2.17.1