Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp900917ybl; Wed, 28 Aug 2019 07:00:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG73TFjulhvhg6OTiLHTi7e8HKjdkJvJS6Dk3efpfHtHRYZ9zyxNIf+JjAdcN7eVktX6ID X-Received: by 2002:a63:5754:: with SMTP id h20mr3453288pgm.195.1567000810592; Wed, 28 Aug 2019 07:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567000810; cv=none; d=google.com; s=arc-20160816; b=Vnk0IvRF1Rj7wac+q9QQl8uXKAJ60WJ3EwduDbc/vus0tfTNfuxhBQJY6Y4tOSYlxW 3BRHl4p6hISuRUCL+Mju6KkXbvFJHj4Acmj7Zvvhm6qAYkQ7+YCQqVY4woraYZ+ZWijN 06ua/8bMYVO8X3AuigVaEvnbmlsQLWfk+rZxNbE6QNwWEYUobzlf2ceebmxohouC8U/B m4182HiqPtqnQaQ5yTSi/uSKxM5l9Ix9dYCV+SgcKr6WOv5o6Ivp/DLoNHsyjOrHsKha RTa1cVwQR5bswMYU9wkWwRcP49RLr7d5Vt18KyVT/Bw3A9PYC8WuasXHbIJMqHPnSIcy zsuA== 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=Qf6H/FS0ZjP/h1HksV3cWh7jIM0K+zg3KAglox2rx3I=; b=cY2ESnVhB56DKZR4PgSgSU5LvSwVbGbP9Reqy+pM2duCtmpa9qRT6LanYI0I3gmaa8 q3bzrkRu0gsOFqpWMbW3Z9NoeEdvKgEmMlNy4ja/DTkmUme/YYeDzwvHEQCWgpo1jCY7 NIUKf3vVPN+loXQfhZEaiPGeQKWk2BWqLd07eLEd+LGSwOGx/iIZULeTbgmj64Cr/2iM QrDWK0eUk/mIlnk/9gIFOMloT3opyvAcoUJCzdF6lV1lrlplpElMNnK1bbpmnG96qj08 /O0jRfKNyTB8XYL+qQZR5qFjeRUFicJcVmtIN+KPqfSHSVPd442sdv3Fit/Wv8cVQpZ5 2Hrg== 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 k4si1928163pls.191.2019.08.28.06.59.54; Wed, 28 Aug 2019 07:00:10 -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 S1727175AbfH1N6h (ORCPT + 99 others); Wed, 28 Aug 2019 09:58:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58420 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbfH1N6A (ORCPT ); Wed, 28 Aug 2019 09:58:00 -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 D40A1103EF49; Wed, 28 Aug 2019 13:57:59 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 38E741001B05; Wed, 28 Aug 2019 13:57:58 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 18/23] libperf: Add PERF_RECORD_TIME_CONV 'struct time_conv_event' to perf/event.h Date: Wed, 28 Aug 2019 15:57:12 +0200 Message-Id: <20190828135717.7245-19-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.64]); Wed, 28 Aug 2019 13:57:59 +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_TIME_CONV 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-dize9k67s0341vek7hs8vhty@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 7 +++++++ tools/perf/util/event.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index 34d365bd2c5c..7600f53f6ad1 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -305,4 +305,11 @@ struct stat_round_event { __u64 time; }; +struct time_conv_event { + struct perf_event_header header; + __u64 time_shift; + __u64 time_mult; + __u64 time_zero; +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index ec76412afba1..d758485956b3 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -337,13 +337,6 @@ enum { PERF_STAT_ROUND_TYPE__FINAL = 1, }; -struct time_conv_event { - struct perf_event_header header; - u64 time_shift; - u64 time_mult; - u64 time_zero; -}; - struct feature_event { struct perf_event_header header; u64 feat_id; -- 2.21.0