Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2730143ybl; Thu, 29 Aug 2019 12:04:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK2LJN+G/xAW13I+E3yDvg1nCDzIR24ntJy3cgcZc9OkuPZC0eoOmglGnEH+qyV4l/CucS X-Received: by 2002:a63:394:: with SMTP id 142mr9682306pgd.43.1567105460734; Thu, 29 Aug 2019 12:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105460; cv=none; d=google.com; s=arc-20160816; b=DQ1HNJOL8kFHr/BuCIsqkuCaL6lQorBHY/m5XfU76Vzv0w7pvqUwtNuh8b8Bsv3OhE IvH0cTFwi9CsR5VZzpH4NFW2wQk/Rv+WGqkX/RstvEMK1SYmASAHkAMwkJLDbyxQOgQj RRsYEjq0sCnwUEetAQ7Qm0fPEaUAXgWyqHd9qZ1mN48wcULXmSEMTpoKn3eeDVTUZtm8 c9Xt3OUAWGY9TRLBjctc9BYtqUO1/zwFmRXldKEDCkWt1XdjevTiOujKyfgWxpaeItQI om5D5d4Txkd1VxXM1Vf5QyVTHCVent8iDC9Mvo8crR4Sn/55zqS3pPyjDzTSUTdbv0mB kMbw== 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=IaSqy/uzdGs9UF1gBvEj+78DuHd/0NaDL1371qGnfDU=; b=gNsHH67/dvmnOR2WflhL6Z/1Fmv9eoJDMxRSOTt6RQ+3WkHo/MGxP9Bxg6ih+X8+pe ic+hS8T6ZN/mA8Ozdv4KcSgACjMw41o9L/WL9li73DrUGpJg6ICHvLjPb6Uhz0J6ahzy yaeAq5Oe9fupxExB0ZzxZRMkWZ4vWfd4El7AbRL7tCW/uYCgLZLmjYaF5Zd/L17Vqp4I iasDH3gaLo7ZLOjSRZrei9SabYc4eavrPGlLLMjzTYgd/yquIiEwwkyvf5QqMGJP4SLV torxG7QpN124ajGVsmw7j/AMLc19kgiGiR/F0hxCs719X6ecEWBNQfYsdHSlIZBCHEHW MZWw== 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 28si2675669pgk.331.2019.08.29.12.04.03; Thu, 29 Aug 2019 12:04:20 -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 S1728962AbfH2TCS (ORCPT + 99 others); Thu, 29 Aug 2019 15:02:18 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51552 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728907AbfH2TCQ (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 1i3PgL-0005GA-Jb; Thu, 29 Aug 2019 21:02:05 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 413C11C07C3; Thu, 29 Aug 2019 21:02:01 +0200 (CEST) Date: Thu, 29 Aug 2019 19:02:01 -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: Add 'union perf_event' 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-22-jolsa@kernel.org> References: <20190828135717.7245-22-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <156710532113.10604.10416691783935836000.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: 7510410a38c71eb5d45217a4934e60eef88c04e1 Gitweb: https://git.kernel.org/tip/7510410a38c71eb5d45217a4934e60eef88c04e1 Author: Jiri Olsa AuthorDate: Wed, 28 Aug 2019 15:57:15 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 29 Aug 2019 08:36:12 -03:00 libperf: Add 'union perf_event' 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-22-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/perf/event.h | 36 ++++++++++++++++++++++++++++- tools/perf/util/event.h | 36 +---------------------------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index ef7a46e..a5b08ef 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -323,4 +323,40 @@ struct compressed_event { char data[]; }; +union perf_event { + struct perf_event_header header; + struct perf_record_mmap mmap; + struct perf_record_mmap2 mmap2; + struct perf_record_comm comm; + struct perf_record_namespaces namespaces; + struct perf_record_fork fork; + struct perf_record_lost lost; + struct perf_record_lost_samples lost_samples; + struct perf_record_read read; + struct perf_record_throttle throttle; + struct perf_record_sample sample; + struct perf_record_bpf_event bpf; + struct perf_record_ksymbol ksymbol; + struct attr_event attr; + struct event_update_event event_update; + struct event_type_event event_type; + struct tracing_data_event tracing_data; + struct build_id_event build_id; + struct id_index_event id_index; + struct auxtrace_info_event auxtrace_info; + struct auxtrace_event auxtrace; + struct auxtrace_error_event auxtrace_error; + struct aux_event aux; + struct itrace_start_event itrace_start; + struct context_switch_event context_switch; + struct thread_map_event thread_map; + struct cpu_map_event cpu_map; + struct stat_config_event stat_config; + struct stat_event stat; + struct stat_round_event stat_round; + struct time_conv_event time_conv; + struct feature_event feat; + struct compressed_event pack; +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index ee2ee23..e15eed5 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -337,42 +337,6 @@ enum { PERF_STAT_ROUND_TYPE__FINAL = 1, }; -union perf_event { - struct perf_event_header header; - struct perf_record_mmap mmap; - struct perf_record_mmap2 mmap2; - struct perf_record_comm comm; - struct perf_record_namespaces namespaces; - struct perf_record_fork fork; - struct perf_record_lost lost; - struct perf_record_lost_samples lost_samples; - struct perf_record_read read; - struct perf_record_throttle throttle; - struct perf_record_sample sample; - struct perf_record_bpf_event bpf; - struct perf_record_ksymbol ksymbol; - struct attr_event attr; - struct event_update_event event_update; - struct event_type_event event_type; - struct tracing_data_event tracing_data; - struct build_id_event build_id; - struct id_index_event id_index; - struct auxtrace_info_event auxtrace_info; - struct auxtrace_event auxtrace; - struct auxtrace_error_event auxtrace_error; - struct aux_event aux; - struct itrace_start_event itrace_start; - struct context_switch_event context_switch; - struct thread_map_event thread_map; - struct cpu_map_event cpu_map; - struct stat_config_event stat_config; - struct stat_event stat; - struct stat_round_event stat_round; - struct time_conv_event time_conv; - struct feature_event feat; - struct compressed_event pack; -}; - void perf_event__print_totals(void); struct perf_tool;