Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2731204ybl; Thu, 29 Aug 2019 12:05:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq1h1WgUWRWAa0gAwb3IuKuN6PgBXsbpp6Wbv3IrsqQLNw/s3Hl5mRICrc8HPjPPvRfri4 X-Received: by 2002:aa7:9393:: with SMTP id t19mr12955168pfe.12.1567105507334; Thu, 29 Aug 2019 12:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105507; cv=none; d=google.com; s=arc-20160816; b=jG6wu6SK0dWxpYbPYZAn/hla/fTtewynVgmDh92rFxo5gW2ZDuXxMCFCUPV8oCpIkS 6fNzYGmiq2CohnJnmwG9TlOmOM8xazTjntbWsqXBA5URAmipThkDaaLhEuPlsuzQapZF kuuMufqSRg37CM/pbp9nhoZPRBnZWvaHfAKyuT7q9wBypj3nHzYOrVhZlXmNTCJY7isq 3is/lvPZtrquCRnZqDnUqpCSbRjKv0zRwCw5dzpcmkPHeFyKtWT/0NrMeXopxa0wwZIa rkjt8Mqj6eHFzVsdgry90W9rOk7kxWl1Oy0lrIVOXJZ9ZQ/Q69bbdPfF9fSp5de2rN2K ltXw== 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=4pPXtpB2bGIVpGZ0ID7VaY+AsIhQe1VjTVp7BYxRsHw=; b=dq+lXyJmtYjwRYV5y3CYOm9JsGX9UD5/GIT8vjgY1TE3P/eO8HbzO/9t8Lv+1zqCpL 83g5Lm7Znf9WuogZEW7LkinBBpAGR1rrMQefJ+1xWY5cpYDr3nvk1KqqhkX7LqcI24Yn ujtC6RJO9sVFBxLzCKQvg/l5ySH2jNEiUtrQkL7+hqkK2O+dRYAVttOIsa3zdSjaLSDq Hu5M+VREA+xKw9OLwbAkgo57RU4nXFqVgd0T8smNEeUyCjWEOheEHP6n3hIpoKUCwhLB w2y4RJQdTANPah/rAXdFKN5pUKT0HUTH0of8xLiZ9TCmUHO0MHhFJCWOvk02Jm8b//W0 QKrA== 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 c17si2778584pgp.266.2019.08.29.12.04.52; Thu, 29 Aug 2019 12:05:07 -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 S1729308AbfH2TDK (ORCPT + 99 others); Thu, 29 Aug 2019 15:03:10 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51513 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728807AbfH2TCM (ORCPT ); Thu, 29 Aug 2019 15:02:12 -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 1i3PgJ-0005Ak-4N; Thu, 29 Aug 2019 21:02:03 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 482DB1C0DE7; Thu, 29 Aug 2019 21:01:56 +0200 (CEST) Date: Thu, 29 Aug 2019 19:01:56 -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_AUX 'struct aux_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-12-jolsa@kernel.org> References: <20190828135717.7245-12-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <156710531616.10574.9122278864072080419.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: aedebdca09ca6efa7efbc0bf26d94cb235120ee4 Gitweb: https://git.kernel.org/tip/aedebdca09ca6efa7efbc0bf26d94cb235120ee4 Author: Jiri Olsa AuthorDate: Wed, 28 Aug 2019 15:57:05 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 29 Aug 2019 08:36:11 -03:00 libperf: Add PERF_RECORD_AUX 'struct aux_event' to perf/event.h Move the PERF_RECORD_AUX event definition to libperf's event.h. In 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-12-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/perf/event.h | 7 +++++++ tools/perf/util/event.c | 2 +- tools/perf/util/event.h | 7 ------- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index 6292b7c..d453ac8 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -234,4 +234,11 @@ struct auxtrace_error_event { char msg[MAX_AUXTRACE_ERROR_MSG]; }; +struct aux_event { + struct perf_event_header header; + __u64 aux_offset; + __u64 aux_size; + __u64 flags; +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index e33dd1a..b048e60 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c @@ -1449,7 +1449,7 @@ int perf_event__process_exit(struct perf_tool *tool __maybe_unused, size_t perf_event__fprintf_aux(union perf_event *event, FILE *fp) { - return fprintf(fp, " offset: %#"PRIx64" size: %#"PRIx64" flags: %#"PRIx64" [%s%s%s]\n", + return fprintf(fp, " offset: %#"PRI_lx64" size: %#"PRI_lx64" flags: %#"PRI_lx64" [%s%s%s]\n", event->aux.aux_offset, event->aux.aux_size, event->aux.flags, event->aux.flags & PERF_AUX_FLAG_TRUNCATED ? "T" : "", diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index e334ecb..db901ae 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -332,13 +332,6 @@ struct events_stats { u32 nr_proc_map_timeout; }; -struct aux_event { - struct perf_event_header header; - u64 aux_offset; - u64 aux_size; - u64 flags; -}; - struct itrace_start_event { struct perf_event_header header; u32 pid, tid;