Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2730564ybl; Thu, 29 Aug 2019 12:04:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNxJYwQk1CfxizaNGNAtEpjVnzBDCWrQyevVAp7vpbU1rQJnr8sZ92rNV5SpgSaUmUQAsa X-Received: by 2002:a17:90a:be02:: with SMTP id a2mr11568289pjs.94.1567105479656; Thu, 29 Aug 2019 12:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105479; cv=none; d=google.com; s=arc-20160816; b=Imx2Ep1AABhBB/O53wxNym90XBnPbHUzIG53v/TPZg4EsZwKNj7nOchxecZDFPWeLT N87VY40ytOnR3oxueuHOdEB5lgrgmsHdXYg9dhA94677C0cIqr2VrroqdKMyjtxDElWP IF5yUSSKXZ3TfFZhxm0Zlqd4AdvTys2F4Q6Kn+xM8tv4ZHEz5ixJC3tnec5wck0l5z7p 5AepTVDq6un/kx+31AX5cxESlw0333dvTH6pZPZEiZTSWoFjmFKqRm0UZexIlx2EEkOu 5stygxmCcN/X4oLDDaf7AKk0c+bVIVfWZZR8Y7T+Z8YtPEgePZsUQaRplVLQfVzT1nZc NbYA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=WTC118dxzqrJzVc7qfbgsez+uwEFozpTPX0zWwUYsGY=; b=bI+XeHWHARpD/CYXVHDD6lwNA2YYA7pMoN31h2BFkVyd3JMGdL3KQXJ4PyhveoLQa0 HzdpL8lKyizFkuIQ8uFO0iCcHfX9OhM1AbPE4PrxA7sSz2+lO4cgGQCVs2bvpwmmBPp5 +I9oTW1WghD6TBZHSIf986qA6lmEobNVWH8oxi1W/49la1dTE1xtYU4ZbDMg2v3aBH/z 0kA9jC1z6QGLtrtamLhDaqH2pcYbOF5ELWYP50fPYzYzVAh0b5vge0MK5xAcU1UsUWBw s8VypXV93wzWIhOIkT3jaCfHc34CYQY+PzesvrFt0DoZDP2+X/h2/3mQcDEyBiAvHBAl fYRA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si2724187pgw.174.2019.08.29.12.04.15; Thu, 29 Aug 2019 12:04:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729184AbfH2TCs (ORCPT + 99 others); Thu, 29 Aug 2019 15:02:48 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51549 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728903AbfH2TCQ (ORCPT ); Thu, 29 Aug 2019 15:02:16 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1i3PgM-0005Gv-9x; Thu, 29 Aug 2019 21:02:06 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 40A511C0DED; Thu, 29 Aug 2019 21:02:02 +0200 (CEST) Date: Thu, 29 Aug 2019 19:02:02 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] libperf: Move 'enum perf_user_event_type' to perf/event.h Cc: Jiri Olsa , Alexander Shishkin , Michael Petlan , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20190828135717.7245-24-jolsa@kernel.org> References: <20190828135717.7245-24-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <156710532214.10610.9063553957043202304.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 653dd8e6e8e46591f864b7ad98e10819079d5a88 Gitweb: https://git.kernel.org/tip/653dd8e6e8e46591f864b7ad98e10819079d5a88 Author: Jiri Olsa AuthorDate: Wed, 28 Aug 2019 15:57:17 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 29 Aug 2019 08:36:12 -03:00 libperf: Move 'enum perf_user_event_type' to perf/event.h So it's available for libperf's users. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190828135717.7245-24-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/perf/event.h | 23 +++++++++++++++++++++++ tools/perf/util/event.h | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index 1655c74..1810689 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -323,6 +323,29 @@ struct perf_record_compressed { char data[]; }; +enum perf_user_event_type { /* above any possible kernel type */ + PERF_RECORD_USER_TYPE_START = 64, + PERF_RECORD_HEADER_ATTR = 64, + PERF_RECORD_HEADER_EVENT_TYPE = 65, /* deprecated */ + PERF_RECORD_HEADER_TRACING_DATA = 66, + PERF_RECORD_HEADER_BUILD_ID = 67, + PERF_RECORD_FINISHED_ROUND = 68, + PERF_RECORD_ID_INDEX = 69, + PERF_RECORD_AUXTRACE_INFO = 70, + PERF_RECORD_AUXTRACE = 71, + PERF_RECORD_AUXTRACE_ERROR = 72, + PERF_RECORD_THREAD_MAP = 73, + PERF_RECORD_CPU_MAP = 74, + PERF_RECORD_STAT_CONFIG = 75, + PERF_RECORD_STAT = 76, + PERF_RECORD_STAT_ROUND = 77, + PERF_RECORD_EVENT_UPDATE = 78, + PERF_RECORD_TIME_CONV = 79, + PERF_RECORD_HEADER_FEATURE = 80, + PERF_RECORD_COMPRESSED = 81, + PERF_RECORD_HEADER_MAX +}; + union perf_event { struct perf_event_header header; struct perf_record_mmap mmap; diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index a7341e1..4c0c523 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -146,29 +146,6 @@ struct perf_sample { PERF_MEM_S(LOCK, NA) |\ PERF_MEM_S(TLB, NA)) -enum perf_user_event_type { /* above any possible kernel type */ - PERF_RECORD_USER_TYPE_START = 64, - PERF_RECORD_HEADER_ATTR = 64, - PERF_RECORD_HEADER_EVENT_TYPE = 65, /* deprecated */ - PERF_RECORD_HEADER_TRACING_DATA = 66, - PERF_RECORD_HEADER_BUILD_ID = 67, - PERF_RECORD_FINISHED_ROUND = 68, - PERF_RECORD_ID_INDEX = 69, - PERF_RECORD_AUXTRACE_INFO = 70, - PERF_RECORD_AUXTRACE = 71, - PERF_RECORD_AUXTRACE_ERROR = 72, - PERF_RECORD_THREAD_MAP = 73, - PERF_RECORD_CPU_MAP = 74, - PERF_RECORD_STAT_CONFIG = 75, - PERF_RECORD_STAT = 76, - PERF_RECORD_STAT_ROUND = 77, - PERF_RECORD_EVENT_UPDATE = 78, - PERF_RECORD_TIME_CONV = 79, - PERF_RECORD_HEADER_FEATURE = 80, - PERF_RECORD_COMPRESSED = 81, - PERF_RECORD_HEADER_MAX -}; - enum auxtrace_error_type { PERF_AUXTRACE_ERROR_ITRACE = 1, PERF_AUXTRACE_ERROR_MAX