Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp901738ybl; Wed, 28 Aug 2019 07:00:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuHE8kPsCBzwqOCwC1Ti/B6QCvQRxmqq2t+oEu08Lhx3HKoonaUAk1gv7B5RJ3ibV/yHpw X-Received: by 2002:a17:902:e68f:: with SMTP id cn15mr4552365plb.212.1567000846882; Wed, 28 Aug 2019 07:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567000846; cv=none; d=google.com; s=arc-20160816; b=F52c3fLxDKEp7RqYCvcyfsDeN7moZW3F8DNEcpMGj6bUEyTYndJRELXa77CXJE2Nd/ T6b9R7KJ+wPUi7ivF3EJgQjG0ir1C6VvJ1RJOCIE7PI8osxOwAhNFCPzzdeNWeNGjn8R D+NRkpfNjc7oqjlDfl4efPwCgE0iNTXtJ01/AVaFl5T9DMS8FGjA1CPcGqwUsodLQ9hz 2EjS7uPJtMfUQNbwKULQKcIPVc8KBcgQ5QP258Q0roTquqyW+Q2OzkO5Uo0kVhrotY3c IHhlSstgy3LziXmcZNZTgmb/5GyNfi5Opv3FluaaSeBWArLsKn7jMp4K3Mrsv3IShNqS 9jzw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4ONyDaGrFPgckhshNOw5KoJDABqZfiyjFrVEiYIT7Ko=; b=FWGhdGSwNAmgkqW98FtgxRMRtrhFXGL1A+453cXhJB9Xc/zXr7xOE6vN2VDg5Ol+rj rmXYBwFgkXTEF1qhzXvFvpEBiHfrP5X6/tq/eF/8j+GLjjayixAfdOkKrwxnyhiYQWQ7 0x/KkwN8iN6M716g0WQrcY/Pw5ejA+Um5MDbLuTOVc/D5+hSCvSnGTJJ/JDOnGW+ke35 KRKqydjkEcC/9dzX8wWdwGgqVul+QOdgoQj3PSWi7D/3TAcIATqGModJvgw4SpRWwt4q FuArXYebsRtLHYPUoYZ23YAvnX/ZEDQi+IBrzfxHZ5ojtI9Gq0nQaRtS3NozsX6CuUv+ /paA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d74si2585793pfd.164.2019.08.28.07.00.30; Wed, 28 Aug 2019 07:00:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfH1N66 (ORCPT + 99 others); Wed, 28 Aug 2019 09:58:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58738 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbfH1N5a (ORCPT ); Wed, 28 Aug 2019 09:57:30 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2914D7F745; Wed, 28 Aug 2019 13:57:30 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8371C1001B08; Wed, 28 Aug 2019 13:57:28 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 05/23] libperf: Add PERF_RECORD_HEADER_TRACING_DATA 'struct tracing_data_event' to perf/event.h Date: Wed, 28 Aug 2019 15:56:59 +0200 Message-Id: <20190828135717.7245-6-jolsa@kernel.org> In-Reply-To: <20190828135717.7245-1-jolsa@kernel.org> References: <20190828135717.7245-1-jolsa@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.71]); Wed, 28 Aug 2019 13:57:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the PERF_RECORD_HEADER_TRACING_DATA 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. Link: http://lkml.kernel.org/n/tip-a3vv3556pgb0k7gmp1hybqwy@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 5 +++++ tools/perf/util/event.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index ecd1536a3a0c..fa81fea8dc02 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -175,4 +175,9 @@ struct event_type_event { struct perf_trace_event_type event_type; }; +struct tracing_data_event { + struct perf_event_header header; + __u32 size; +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 00725a1b602b..67f6a67ad3b4 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -337,11 +337,6 @@ struct events_stats { u32 nr_proc_map_timeout; }; -struct tracing_data_event { - struct perf_event_header header; - u32 size; -}; - struct id_index_entry { u64 id; u64 idx; -- 2.21.0