Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1921354pxk; Sun, 13 Sep 2020 22:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxILyaPncimKIGxdKZFdzar3FBiMDAjDHRtF4l3Ye/wUwkHDkLoX12qAPd1gjpx1USOyvbr X-Received: by 2002:aa7:d417:: with SMTP id z23mr14981374edq.62.1600062166283; Sun, 13 Sep 2020 22:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600062166; cv=none; d=google.com; s=arc-20160816; b=0/ejmtdxOBOyoZown0dm5TTkVnFkPPBa0F5+TsLkFehi3oEw/qQinCt+taJsZ/JSaR MCUYSk2v3FPWIepC52T92Oz0zQIl/aZhkSZIGgZBwEyIhuoSgNyEXuUsB3n/C01l914t 9erounb/KcFfm5Dk3Wf7a6UniVmJuTBzE/7DhYnuTjvO1yA9HIoORXd4qqn5LV2zpyHd 5lJbmterJQZMLzhcKMhCVARjTIOe0k6+9qbljV3BDjqw2vIqZ34p1tceyJD7Re/rtgkW BGarg7hOUu/cE8jID/yXCmMYDCsKKdghYaH6DrfWx9N9SStwUvDzgwG06oocfYZg1wJ1 +KyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=vAkzaOWL4Nu8JZqwZ6SJPpCKL9x+DfRKOfCjWFPwixM=; b=Rqu+FBN/dfRm88D0XO8PIU0UIzpsUWE9KJlts+eZeaiVzOjeZNfvHn4yNlVIW6MABp Wn5qG3p6uh15k+tFA4qpvCAVtZh6VbCKHlBlkIBDlsjyGmjvc5kl+/r/62q8uGS25kwk 889KXdWupjsO9hw2KA0U1QUwAiV4eA/nB297kbPc3hXJ+I3Qfzpa9FgGB3MCtSqAJ1p/ /bG9yhNRe79osjHPQTZoNdjzsSnHG/0ZeoWXiw9NVLKj88n0trFZBrHMfUYVuLmik4sy xTmA8zjJxRZ+pWAeoHAvypxXhv/kMlvoblGOiky05ErNrxG0aU4/bABf0Kihnj3ZaYf+ 22FA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u21si6510631eja.78.2020.09.13.22.42.24; Sun, 13 Sep 2020 22:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726042AbgINFja (ORCPT + 99 others); Mon, 14 Sep 2020 01:39:30 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:39773 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726003AbgINFj3 (ORCPT ); Mon, 14 Sep 2020 01:39:29 -0400 Received: by mail-wr1-f67.google.com with SMTP id a17so17215511wrn.6 for ; Sun, 13 Sep 2020 22:39:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vAkzaOWL4Nu8JZqwZ6SJPpCKL9x+DfRKOfCjWFPwixM=; b=LNEy7nSL1csqmQkKo4xbs+uepo9przZZTzvkaTNFvlhOXkOzKGZpddByD0feaz+QsA jx8Z1S34nsDP9eSBjY3meAQ86Twdfd4tyZAT2Pp1KfE7jUuOrw5bN7/L4PsdEjMlOflE GonWbjwYLye+z9jFgdPXPLAayHb5UYtLMUYUf9LyfbEsxMuEYEUtSUoNqp4fxO/Naqij Moe8cRfJLpVq63BekmSiCorbiUz+7Zk6DIYv+coA6p5Dwi1ozct5U5xWvoLarKl4MXkb chFDxM7HnBj+olLxZI05e+PZgRP+Vcn8l4i8kgHVVWgPplDnZOjaf1DXHc0ZqdghOq9c KcoQ== X-Gm-Message-State: AOAM532HSjVZgey84pGv55F5efmfcY8wdgVa1Jjx4sCqTdKqNROFnVL1 aeNx8ZdfKdWeQl0zs5iUq/4z7edIDvFvq6w1V+g= X-Received: by 2002:adf:e481:: with SMTP id i1mr13900480wrm.391.1600061985048; Sun, 13 Sep 2020 22:39:45 -0700 (PDT) MIME-Version: 1.0 References: <20200913210313.1985612-1-jolsa@kernel.org> <20200913210313.1985612-4-jolsa@kernel.org> In-Reply-To: <20200913210313.1985612-4-jolsa@kernel.org> From: Namhyung Kim Date: Mon, 14 Sep 2020 14:39:34 +0900 Message-ID: Subject: Re: [PATCH 03/26] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Michael Petlan , Song Liu , "Frank Ch. Eigler" , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > Sync uapi header with kernel version for mmap3 support. > > Signed-off-by: Jiri Olsa > --- > tools/include/uapi/linux/perf_event.h | 27 ++++++++++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h > index 3e5dcdd48a49..84a0cbdab1ef 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -384,7 +384,8 @@ struct perf_event_attr { > aux_output : 1, /* generate AUX records instead of events */ > cgroup : 1, /* include cgroup events */ > text_poke : 1, /* include text poke events */ > - __reserved_1 : 30; > + mmap3 : 1, /* include bpf events */ Same here.. Thanks Namhyung > + __reserved_1 : 29; > > union { > __u32 wakeup_events; /* wakeup every n events */ > @@ -1060,6 +1061,30 @@ enum perf_event_type { > */ > PERF_RECORD_TEXT_POKE = 20, > > + /* > + * The MMAP3 records are an augmented version of MMAP2, they add > + * build id value to identify the exact binary behind map > + * > + * struct { > + * struct perf_event_header header; > + * > + * u32 pid, tid; > + * u64 addr; > + * u64 len; > + * u64 pgoff; > + * u32 maj; > + * u32 min; > + * u64 ino; > + * u64 ino_generation; > + * u32 prot, flags; > + * u32 reserved; > + * u8 buildid[20]; > + * char filename[]; > + * struct sample_id sample_id; > + * }; > + */ > + PERF_RECORD_MMAP3 = 21, > + > PERF_RECORD_MAX, /* non-ABI */ > }; > > -- > 2.26.2 >