Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3637664ybg; Fri, 25 Oct 2019 06:57:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuoDhWHHqje8IDMFbupZ7Kq+yG9mx8FDJuj4zZ3+6E5pUpaZh36FFQHe9b2SJ5enpwyHBE X-Received: by 2002:aa7:d305:: with SMTP id p5mr4223820edq.80.1572011873075; Fri, 25 Oct 2019 06:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572011873; cv=none; d=google.com; s=arc-20160816; b=kO2f2DwjE6BTB0FX7m5tKLBR3FjXEpZ49BFe09pUYAGViEijut9hYraNOAZMgATmY4 kh8wpHVthIKBwasy3z6X8MgRPf+XU4+on65UApGiPQk2U46MWpv4RzOt6U8JlHnz+HEh VrW3CNzhtBdhOP572etBDh0hKe7UFtvSjDELoAq3jVo/swFQM4F4HHNEDKW2sOIAdEBf YD4a4wc6Jxg4BinRp+LzEuR3NcWykYDwZj3NVPKcZFOXZbwjLmg3JgySRA/01YpA02U0 ReXcLgWoGMpAqxanCarCah/ATy23qzEVeUaNiqwiAitPYvjyHQPKCLD3RVppRv8k6mtb g6TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+CloHryu+Y2JAtCHRYP2gfrRzMk74Qm1X2JFp8azpkw=; b=cH9zFhK7fFSLUfyDe4PyWPxnsCleYVsHLCWBBR9ruJ7ULbH7Ig1/LdwPonTVIIldHS +NkSlly/xSczoxBFVHaY9+ashgBGM3OBNHuQbWE+49K3w/u7cNtm3Ajn3/TJTBFJPe4l 3yXvUHIH5ZXalwNGoSN/hZUag8+1/chniFEOJ3UqOWKPX63Hk9rTzIfHXOixHMYnEKHU 84Am8lrBhrrn375j+epImSr1UHItidlkCEUIiEqehUKkhyvJfslijkmWLMqOZevE7S4t MDCgrkFdgryueClZe5z8TEfVhYtFCSIaHD8u7esAW56kmmHkpC892YTebIciHBF/iEKP 5GTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZMs2V4fS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h18si1330050edh.352.2019.10.25.06.57.29; Fri, 25 Oct 2019 06:57:53 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZMs2V4fS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390417AbfJXNwK (ORCPT + 99 others); Thu, 24 Oct 2019 09:52:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46626 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbfJXNwK (ORCPT ); Thu, 24 Oct 2019 09:52:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+CloHryu+Y2JAtCHRYP2gfrRzMk74Qm1X2JFp8azpkw=; b=ZMs2V4fS2HmOMBrX62c/zCbZR wlT8brspJtgAyEhMeebZ/bTk4e475xMHIMowD84/WYgpzCsqG+o2xrhaFosqbVkNQMA538wwKmRLu ZBHaZWpspRT85nCSR7VMUVHhL49XLLx5YPZN0hCZaNfBGHYErqKLiMdXN/uTeMAYwMCIv/0ErQaVb 7XH9SVaO7j+r8kF6P1ZLyJhiLv2f9xB/UOlZx5UqEVjZPRppUpJ5dfH97vDyJCN0suvU8TSQDWF/l +NgRLhEzLdUsxqf8I2Ymz/PAPYqzTKIqfFIJQbRzqo+u8NxyndTJG47L+EXphN/zWSKm+1RwBeeYy +H7rYth0w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNdX4-0003VX-Dm; Thu, 24 Oct 2019 13:52:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1E77C300489; Thu, 24 Oct 2019 15:51:06 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9F2BB2B1D7CA1; Thu, 24 Oct 2019 15:52:04 +0200 (CEST) Date: Thu, 24 Oct 2019 15:52:04 +0200 From: Peter Zijlstra To: Alexander Shishkin 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 Subject: Re: [PATCH v2 1/4] perf: Allow using AUX data in perf samples Message-ID: <20191024135204.GD4114@hirez.programming.kicks-ass.net> References: <20191022095812.67071-1-alexander.shishkin@linux.intel.com> <20191022095812.67071-2-alexander.shishkin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191022095812.67071-2-alexander.shishkin@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 22, 2019 at 12:58:09PM +0300, Alexander Shishkin wrote: > @@ -964,6 +979,7 @@ struct perf_sample_data { > u32 reserved; > } cpu_entry; > struct perf_callchain_entry *callchain; > + u64 aux_size; > > /* > * regs_user may point to task_pt_regs or to regs_user_copy, depending > @@ -996,6 +1012,7 @@ static inline void perf_sample_data_init(struct perf_sample_data *data, > data->weight = 0; > data->data_src.val = PERF_MEM_NA; > data->txn = 0; > + data->aux_size = 0; > } > That is really sad; so far we've managed to only touch a single cacheline there, you just wrecked that.