Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1729368pxk; Sun, 13 Sep 2020 14:05:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjF6O6Kmkp1bl7WAN/d+BqTmuP1MDfM9diqpYW3ka84A/Ck7FRdOQGJE2YQXfKBcHOnZly X-Received: by 2002:a05:6402:1acf:: with SMTP id ba15mr11496253edb.305.1600031100870; Sun, 13 Sep 2020 14:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600031100; cv=none; d=google.com; s=arc-20160816; b=qF2xA5kl6kwOipKkP6jmY0ZNFI+5QqLs2kdFK39ckX6HrvyexJ+VJbuRGPNGs2JaBG MoPVjtBSrMZOtAH4GkU02suu4npeemPx4SMQCNdEUWHsr/aa0mLR7/kk+e4oUfotSahO Bk+Kn2kyEIeJ5s1iVI7XP57sY6t1GxRjDTc65otsev4pWz8BICQsVTTzDREiOeu4Dqcd joO2P4UCwUHdsmMQ4MMWwYp7vtvpFy99t2mibUnvD5uRMcbvQ8FWv+G5gYTveXYlA0XF 8VRm5qYkHRsSf5UIivc5fLe1ChCZujCQS5280Vc/0LbVoOqYDZycP3V/hB+nqetXXAIo 6BBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=08gzyKihc5ylAsAno+fmOgsXNsIXuwtu7Ff6v0AnLpU=; b=K/ih+zcawzc/yYD9lPPSmLfYrfIl+nT+Bksndqw44v3AzMjThQMyYyH3DHmrEmBM29 F/wko/uMFDrpHUgsfOtAC8zX1LY+dDQ09rKpWEX70rW9rz7clQ2vfSDLPUTN5snqph7t 9dFSHrsnI6WC26MPW6ba/ItZG14Sen4EB0tqwbDn3m8qD47YsKe0/OqnqND0zDsFZZG6 +U4+hFwdy/WK/I5SfvU7T8ivXqRnrPYXGk+OpOOi8xSUpsKTE6sp5ePZKQG0rylkr5VK 170tGNxunZ24/DDVJlWOuXEvlYwTQ43Hh1dcB4kjHRzIEl6ebTLulExFqvigaa2CTAlm quDw== 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 n12si5828546eji.393.2020.09.13.14.04.38; Sun, 13 Sep 2020 14:05:00 -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 S1725983AbgIMVDs convert rfc822-to-8bit (ORCPT + 99 others); Sun, 13 Sep 2020 17:03:48 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:33758 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725968AbgIMVDm (ORCPT ); Sun, 13 Sep 2020 17:03:42 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-278-KDjRN5-RMfKk6dQltk75jw-1; Sun, 13 Sep 2020 17:03:34 -0400 X-MC-Unique: KDjRN5-RMfKk6dQltk75jw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 554C6185A0E5; Sun, 13 Sep 2020 21:03:32 +0000 (UTC) Received: from krava.redhat.com (ovpn-112-4.ams2.redhat.com [10.36.112.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id CAC471002393; Sun, 13 Sep 2020 21:03:27 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Michael Petlan , Song Liu , "Frank Ch. Eigler" , Ian Rogers , Stephane Eranian , Alexey Budankov , Andi Kleen , Adrian Hunter Subject: [PATCH 03/26] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h Date: Sun, 13 Sep 2020 23:02:50 +0200 Message-Id: <20200913210313.1985612-4-jolsa@kernel.org> In-Reply-To: <20200913210313.1985612-1-jolsa@kernel.org> References: <20200913210313.1985612-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=jolsa@kernel.org X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: kernel.org Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ + __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