Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2521405ybp; Thu, 10 Oct 2019 08:33:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvHvPsIY94cbatl0DcI34kcavuVVWpezcJRSHjiGWGiH4AXMf2dwJtIjenp5H5C6vd1+t0 X-Received: by 2002:a17:906:6a4f:: with SMTP id n15mr8756453ejs.19.1570721608873; Thu, 10 Oct 2019 08:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570721608; cv=none; d=google.com; s=arc-20160816; b=BVxxqJmVaVquaJvc5SLJIH9JctGgIYcRPwFKCWswi/kMC0qedJXINBF3nXJneGzE4v RlVJyw44uctFVT/l6pnevGMwMMZC34NLrPO+u3gI5Wra5i22bGfJlIVgfLC74OPNiGKp q+m+T4AwLO6LPpSMvV9nbEb3K4aHGe8Ca31z95TMbgHpKr6UsymERwYnfJXeEa0C/ZZk MJWI1z1ECrmHdxZa48a38C4Rev23W6oRgwK0773AF+CmVj8i5VlMhY/UHtOJhcsDnB5w dhYwkB3EH1Al2L8yYlMRdq99XRJr2BuRrDTuG2znsYLD4S5QWAsSZ4w+yek80gxdh4x9 14jQ== 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; bh=+o8J6TpZuaZ/IvSqEoTEIOTeQtTNd8Jtalyu/hGhvgw=; b=F47dwKTc204VRMNfWtR4UPuKtkfrXiEauqAaJ36yfwRDXqAJBmocVqHwzHi6gB7gf8 ZOWgpmesNFgGIQEyaWRXQtTcJ3wfmzOznN0lY9BxyLx153P5kfoUGC3b3o3/jEqLyKP3 NqqHVYgVilbK+wLBZIglDjyFjKaOKE2Rd7yY2aTcTpgOGqfGFbtUnYPOIjr9XvpTJ/pg 9/sjimwShpO654WbnNOJXtUrwKzyPMyO1Tvy6WKqwrPrI4aqqJe3o0GdosBjUwWBQCpk 9lRWHTgOmgzmRIMNwVgY0wemC6c1lrH/vcjb/nj5Gm9tkBvTyaloG1DO9YiGVif7XYBI UfXQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si3251726ejw.76.2019.10.10.08.33.04; Thu, 10 Oct 2019 08:33:28 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726429AbfJJPcf (ORCPT + 99 others); Thu, 10 Oct 2019 11:32:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59474 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfJJPcf (ORCPT ); Thu, 10 Oct 2019 11:32:35 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 584CD10DCCA7; Thu, 10 Oct 2019 15:32:35 +0000 (UTC) Received: from krava (unknown [10.40.205.67]) by smtp.corp.redhat.com (Postfix) with SMTP id 3C25760628; Thu, 10 Oct 2019 15:32:32 +0000 (UTC) Date: Thu, 10 Oct 2019 17:32:32 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Alexander Shishkin , Michael Petlan , Namhyung Kim , Peter Zijlstra , lkml , Ingo Molnar Subject: Re: [PATCH 12/36] libperf: Add perf_mmap__read_event() function Message-ID: <20191010153232.GA24818@krava> References: <20191007125344.14268-1-jolsa@kernel.org> <20191007125344.14268-13-jolsa@kernel.org> <20191010144700.GB11638@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010144700.GB11638@kernel.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.64]); Thu, 10 Oct 2019 15:32:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 10, 2019 at 11:47:00AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > diff --git a/tools/perf/lib/include/internal/mmap.h b/tools/perf/lib/include/internal/mmap.h > > index ee536c4441bb..b328332b6ccf 100644 > > --- a/tools/perf/lib/include/internal/mmap.h > > +++ b/tools/perf/lib/include/internal/mmap.h > > @@ -11,6 +11,7 @@ > > #define PERF_SAMPLE_MAX_SIZE (1 << 16) > > > > struct perf_mmap; > > +union perf_event; > > Why are you adding this here? oops, it should be in lib/include/perf/mmap.h ;-) plz let me know if you want me to repost thanks, jirka