Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2731548ybl; Thu, 29 Aug 2019 12:05:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqz359H8d0qxb1aHSAf/1HIXo73ojlg9dQmTi/vT6kNfHx+FwndwIAvZPhiHqPZBsHCBCu7c X-Received: by 2002:a17:902:f095:: with SMTP id go21mr11836992plb.216.1567105519668; Thu, 29 Aug 2019 12:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105519; cv=none; d=google.com; s=arc-20160816; b=HN8MLGvn8e1dN0/DR4pv6DE6Y36HWmbHMORuteN9MyVwNIRDvU+e7RWI8DWIQRS9+E zoac+WJhAz87bWvABecdE/0zxSTvWgte4ZsoSVCKXQb/fEWsDIX05riySruWbRl3QgMF iiLySMIrFPe3X4iFeH5GjoxBIty/PSsIW++eEn87UMHI7UqYlegeR+ljPz1TVlSbMSOy I7bwtAW2k49ylmc9P1k4MngpWo4nvCCSiSDkxgEEANKa5o6eAlsXcvHR1EoFE9rr5SN5 NF/qIeOauIQ8xvejLuARnBV6dZNJ+Ztk86G0D0p7+80qpjhuifdImfvB/KpeXjEClz6l cjpw== 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=UMegib8l6W6xvYVEPopQjarQzxlAgM3M6rxhnU+IMpc=; b=AP88XYOgSvGXfP59GCwKJVhSvMKUJajQqxMEQCTYhfFVn+SOW84ryGjFgoPqV7+k8w brsuppvYeiG0hD4myP3KlrSdqern12vay46PTZeN4FdVyWRd+xbQtre/6uLmAJcu/spn A3L7kesnfgY3sxBmtu5hxZFkJdt//SNv8bmSxUrcT50UyNo2bTVNIfz9pBI/zZ7kcyp6 3uQc/gb7ENIcMoLgxjdBPRyxTMRpyKBNldwma0xUtAmYRAu/V5yalCh2fe60VpxQQAVA 45jpPCthgLjxQiMYnDgjM6Q2RuVlD94U0iByzZ4XxbMjBxl6aI2Q3xs+aGbhZMv5Hxy+ fbJA== 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 z12si2775872pgp.342.2019.08.29.12.05.04; Thu, 29 Aug 2019 12:05:19 -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 S1729376AbfH2TD0 (ORCPT + 99 others); Thu, 29 Aug 2019 15:03:26 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51464 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728735AbfH2TCH (ORCPT ); Thu, 29 Aug 2019 15:02:07 -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 1i3PgD-00059p-Cy; Thu, 29 Aug 2019 21:01:57 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5B24A1C0DEA; Thu, 29 Aug 2019 21:01:55 +0200 (CEST) Date: Thu, 29 Aug 2019 19:01:55 -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 PERF_RECORD_AUXTRACE 'struct auxtrace_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-10-jolsa@kernel.org> References: <20190828135717.7245-10-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <156710531528.10568.3815035679236242059.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: 306c9d24c09d84d80ae54b36f7f907c8b8fa537a Gitweb: https://git.kernel.org/tip/306c9d24c09d84d80ae54b36f7f907c8b8fa537a Author: Jiri Olsa AuthorDate: Wed, 28 Aug 2019 15:57:03 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 29 Aug 2019 08:36:11 -03:00 libperf: Add PERF_RECORD_AUXTRACE 'struct auxtrace_event' to perf/event.h Move the PERF_RECORD_AUXTRACE event definition to libperf's event.h. Ipn order to keep libperf simple, we switch 'u64/u32/u16/u8' types used events to their generic '__u*' versions. 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-10-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/perf/event.h | 11 +++++++++++ tools/perf/util/auxtrace.c | 2 +- tools/perf/util/event.h | 11 ----------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index 02da734..78001c2 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -208,4 +208,15 @@ struct auxtrace_info_event { __u64 priv[]; }; +struct auxtrace_event { + struct perf_event_header header; + __u64 size; + __u64 offset; + __u64 reference; + __u32 idx; + __u32 tid; + __u32 cpu; + __u32 reserved__; /* For alignment */ +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 112c24a..5edec71 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -943,7 +943,7 @@ s64 perf_event__process_auxtrace(struct perf_session *session, s64 err; if (dump_trace) - fprintf(stdout, " size: %#"PRIx64" offset: %#"PRIx64" ref: %#"PRIx64" idx: %u tid: %d cpu: %d\n", + fprintf(stdout, " size: %#"PRI_lx64" offset: %#"PRI_lx64" ref: %#"PRI_lx64" idx: %u tid: %d cpu: %d\n", event->auxtrace.size, event->auxtrace.offset, event->auxtrace.reference, event->auxtrace.idx, event->auxtrace.tid, event->auxtrace.cpu); diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index ca2cae3..60895a3 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -332,17 +332,6 @@ struct events_stats { u32 nr_proc_map_timeout; }; -struct auxtrace_event { - struct perf_event_header header; - u64 size; - u64 offset; - u64 reference; - u32 idx; - u32 tid; - u32 cpu; - u32 reserved__; /* For alignment */ -}; - #define MAX_AUXTRACE_ERROR_MSG 64 struct auxtrace_error_event {