Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2731835ybl; Thu, 29 Aug 2019 12:05:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBfhkGNH2mYbNK3RPA7oZUQdkpNIjWYvMxaKk4xf2Hh4RorceW+EUnPsh5T9INziTdTQyB X-Received: by 2002:a62:8343:: with SMTP id h64mr12884755pfe.170.1567105529864; Thu, 29 Aug 2019 12:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567105529; cv=none; d=google.com; s=arc-20160816; b=RS1bHQ/OLM2/wl+rXsBXG352mIEWmAwXKK2g/QaSMFf34pUqhOW7VNkjW6eqD0b6Bq S92e+3H87pxm7RWrtojCwEJ365e+oyC1QBwv3QHZANhbDw4yIz/vrv83G/mQr8LBtEB7 upw3dhXC0G5R3b46JJ8U4eecpHk6lu5/cpR4h3Bn5kxWj0Nc0JEy5NVVzi3C8YGnvY0e P9a6eOHz8Sl8VICfdz+J0E6HPnEYGDxUPspK6iOqfL8Y0XuexZ1tl1IftiFQcYLALKQ/ 5jo8a+4lfrERuzxk5MV3VL2C4rPxdBd0AQdUemyi5pXhoO/EYqJIvdgrEWeAHdfVfjr0 ryIQ== 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=/TzdSqbe8TuLjtoLFAAJLSizsIIM6GsUthndNbzNA7w=; b=QzVLacNdq9tEGiDAExcLxrtuDGn+Z0TjAxnOWJHXj/HcbaTzpLXJchqKBKg5X7/45s i7cbEC/02sAM99AB86P/UoIlIkvgOmjXS6ulsEddVTE32PWCO0cVah9VrHit0WSqjnUT PblN7aGx7VUbUg6/9ddV6zWzO14ElUKj/glUQX4h5hHWhdN963KiNhGkiKvwYMR56Sz9 yixFA7pwKe+//E6W5GivenoTu30jMSS1XYrbgmgIQ3xa3zo+2vpE0IJQm07L9HJ7ScJF wo6Y3BvhiYp5LZ3aONyPbLuU6A3UR7HnXSF4T+HKjVovTbd7jfHTS8/lG3HG9n0lLH5G GMcw== 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 d7si2597098pgf.377.2019.08.29.12.05.14; Thu, 29 Aug 2019 12:05:29 -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 S1729456AbfH2TDn (ORCPT + 99 others); Thu, 29 Aug 2019 15:03:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51451 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728700AbfH2TCF (ORCPT ); Thu, 29 Aug 2019 15:02:05 -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 1i3PgE-0005AG-Hg; Thu, 29 Aug 2019 21:01:58 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id C6E021C0DEB; 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_ERROR 'struct auxtrace_error_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-11-jolsa@kernel.org> References: <20190828135717.7245-11-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <156710531573.10571.6241130853636342452.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: 3460efb2e842cccc4566756f194a1be0547f7098 Gitweb: https://git.kernel.org/tip/3460efb2e842cccc4566756f194a1be0547f7098 Author: Jiri Olsa AuthorDate: Wed, 28 Aug 2019 15:57:04 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 29 Aug 2019 08:36:11 -03:00 libperf: Add PERF_RECORD_AUXTRACE_ERROR 'struct auxtrace_error_event' to perf/event.h Move the PERF_RECORD_AUXTRACE_ERROR 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-11-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/perf/event.h | 15 +++++++++++++++ tools/perf/util/auxtrace.c | 2 +- tools/perf/util/event.h | 15 --------------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index 78001c2..6292b7c 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -219,4 +219,19 @@ struct auxtrace_event { __u32 reserved__; /* For alignment */ }; +#define MAX_AUXTRACE_ERROR_MSG 64 + +struct auxtrace_error_event { + struct perf_event_header header; + __u32 type; + __u32 code; + __u32 cpu; + __u32 pid; + __u32 tid; + __u32 fmt; + __u64 ip; + __u64 time; + char msg[MAX_AUXTRACE_ERROR_MSG]; +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 5edec71..c3da8a0 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -1189,7 +1189,7 @@ size_t perf_event__fprintf_auxtrace_error(union perf_event *event, FILE *fp) if (!e->fmt) msg = (const char *)&e->time; - ret += fprintf(fp, " cpu %d pid %d tid %d ip %#"PRIx64" code %u: %s\n", + ret += fprintf(fp, " cpu %d pid %d tid %d ip %#"PRI_lx64" code %u: %s\n", e->cpu, e->pid, e->tid, e->ip, e->code, msg); return ret; } diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 60895a3..e334ecb 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -332,21 +332,6 @@ struct events_stats { u32 nr_proc_map_timeout; }; -#define MAX_AUXTRACE_ERROR_MSG 64 - -struct auxtrace_error_event { - struct perf_event_header header; - u32 type; - u32 code; - u32 cpu; - u32 pid; - u32 tid; - u32 fmt; - u64 ip; - u64 time; - char msg[MAX_AUXTRACE_ERROR_MSG]; -}; - struct aux_event { struct perf_event_header header; u64 aux_offset;