Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4083813ybg; Fri, 25 Oct 2019 13:05:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9MNt+75hrG/6YTcC4h9cwbwD+BdS4jaBt+Xgal82JyVEoIgZCB0HuDfxAYCiLyYcJbtQd X-Received: by 2002:a50:bb48:: with SMTP id y66mr6075807ede.66.1572033909437; Fri, 25 Oct 2019 13:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572033909; cv=none; d=google.com; s=arc-20160816; b=mFpgBKpeRJ+tuCbTV2KbWN0YDWKZH8hHM8krQTWNTlbSwG4AXQg6CM7ZndGl3UZ4KE 14ShSpti0lavxgQ8RSU+ZwVgoKZ1NMK1qTQSVigacYD1ddChbUehyKZ/ZkLtgDmcEFWi 1oh2nQFp1JNqDrLJagHReB4kLraATkHH37chiQMOAob7ChoIFUzzj6KNUlRoCX7mr4om Pxu9RiwzvYkrpVLwjDFd85vLCnIVi23RNFYOOpppnA/F3gAJ3ji1twcAb16rya149L1B H10Nl2tu8Zcfy29zGhOE9l4qcVsrOYomg2oROGskrMU9EYGRyZEYcj8+GTO14qgSBR6f K/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=wrLQzlNypmeOHXGTIuBmqYj1YKtcBHgFqVwrfRp389U=; b=qQyCr3BLOCU64w5vvzdHLCf+zdqkyHsND30ganjSVHQmeIvTQNOjiQljcrMl4dzSc3 bGk1fqmzhL7YO9fUc6votltLCl54rxJ9MOQx+q46os3LO7cO/RTwO7qhv4OttT5B+FGQ n+On9NyyRzfJdTS/n88KJFSuTCd41b5jp/U58Qoy2skyQKAS/WPmYaninyOuJrfUoOp8 MPKZWhTSrRWzVYF32Xu7OgUORU0vp60hWINQvtWHymEok5ueex9ymZwDdi20UgmNCZ+S LR3DUWSfL9SpQUKDu1BQukd4vupg1jNkNphmWtX8L+Hc9b9F0XimF41y0wte+faCs9Qd Ewtw== 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 cf19si1733977ejb.14.2019.10.25.13.04.45; Fri, 25 Oct 2019 13:05:09 -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 S2408013AbfJYMVR (ORCPT + 99 others); Fri, 25 Oct 2019 08:21:17 -0400 Received: from mga05.intel.com ([192.55.52.43]:13927 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404706AbfJYMVR (ORCPT ); Fri, 25 Oct 2019 08:21:17 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2019 05:21:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,228,1569308400"; d="scan'208";a="223904396" Received: from um.fi.intel.com (HELO um) ([10.237.72.57]) by fmsmga004.fm.intel.com with ESMTP; 25 Oct 2019 05:21:14 -0700 From: Alexander Shishkin To: Peter Zijlstra Cc: Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel@vger.kernel.org, jolsa@redhat.com, adrian.hunter@intel.com, mathieu.poirier@linaro.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com Subject: Re: [PATCH v2 1/4] perf: Allow using AUX data in perf samples In-Reply-To: <20191024140624.GG4114@hirez.programming.kicks-ass.net> References: <20191022095812.67071-1-alexander.shishkin@linux.intel.com> <20191022095812.67071-2-alexander.shishkin@linux.intel.com> <20191024140624.GG4114@hirez.programming.kicks-ass.net> Date: Fri, 25 Oct 2019 15:21:13 +0300 Message-ID: <878sp9ggna.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra writes: >> @@ -6511,6 +6629,13 @@ void perf_output_sample(struct perf_output_handle *handle, >> if (sample_type & PERF_SAMPLE_PHYS_ADDR) >> perf_output_put(handle, data->phys_addr); >> >> + if (sample_type & PERF_SAMPLE_AUX) { >> + perf_output_put(handle, data->aux_size); >> + >> + if (data->aux_size) >> + perf_aux_sample_output(event, handle, data); >> + } >> + >> if (!event->attr.watermark) { >> int wakeup_events = event->attr.wakeup_events; > > > So, afaict, you can simply remove the line in perf_sample_data_init(). That's right, thanks for catching this. Regards, -- Alex