Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp899764ybl; Wed, 28 Aug 2019 06:59:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKJ1kwyuxPMSL9MYq+7xUnGa9h3m2ve8KEyX48MPOZK1TI0WWOqUDUd3b6GhIl65gL+gux X-Received: by 2002:a63:6888:: with SMTP id d130mr3411049pgc.197.1567000755944; Wed, 28 Aug 2019 06:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567000755; cv=none; d=google.com; s=arc-20160816; b=07AYnKpFgYZ39D3LQMW6ChCHCpmiF8ooIZMXUmhCiPlqZ8fpEJlOhol5yLxN5QFRdg MAlBHBZj5Q2kxuWjKMJaZTzxVS3PSUl3/xAu6pBnNTsNATDdlPcarSMGeNTCAU8C8RBm Dfv7pbwqdZn0i557EzOYgt4mrkmHIy0T5p/oprHohRlQpGUzQ/meraWTEBda2PwyrevN ktrNINAK8HKQMDzJY0CjyRbCd/5R6zI3XXPY8GoX2QRm3qhuU3dgspLTemnSB2KayMlF C+lVr/byr8l9e9k7zbZtgn5r0lPNChEkSTiNAAmbA1JK+AqJRKyELs6fwMBmitY84uhi 9a8g== 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=wsNE3WTAwfjOGN5MzNzWMGtAXdPwLWb1PH0FWRMNMos=; b=q/yHQB1SEoZ4vM3/zQGwjiZCzpOGttKusLDPLSyERVoTyO3Vbr13UPL3x97AHroO+M ZGlMw1/GngosSE+p3e3OU5Mztfq3I0EllKQUt9FxV0tiu9K5WbuuBAbOuM1NlOQGSB5Y yzgNKwmkst2ZaSQ24an0h3vUujI/mBUegMzVgp4RpfbgCsMWcngFiX3x1Fp4hvAB8CUU Zt3x1kSd/O4e8S4MmZ8daYYkhhPTYIT7uSGQaSx8AePMilYNx0UUmDKCfTCCbqcmRrDs QTrZHzgBisPEk/iCbtrKDErxgDub5sfQE12G9lCOTA7TaBIthGiO3pCVPoPLu5KXFTSq BXPA== 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 18si2172517pgf.457.2019.08.28.06.58.59; Wed, 28 Aug 2019 06:59:15 -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 S1726992AbfH1N5v (ORCPT + 99 others); Wed, 28 Aug 2019 09:57:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51218 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726947AbfH1N5r (ORCPT ); Wed, 28 Aug 2019 09:57:47 -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 C1F7E8980EA; Wed, 28 Aug 2019 13:57:46 +0000 (UTC) Received: from krava.brq.redhat.com (unknown [10.43.17.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2466E1001B00; Wed, 28 Aug 2019 13:57:43 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan Subject: [PATCH 12/23] libperf: Add PERF_RECORD_ITRACE_START 'struct itrace_start_event' to perf/event.h Date: Wed, 28 Aug 2019 15:57:06 +0200 Message-Id: <20190828135717.7245-13-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.67]); Wed, 28 Aug 2019 13:57:46 +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_ITRACE_START 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-it9jc5sr10hblg89ljuz7j93@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/lib/include/perf/event.h | 6 ++++++ tools/perf/util/event.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/perf/lib/include/perf/event.h b/tools/perf/lib/include/perf/event.h index d453ac833a58..3bcbc1eaeb35 100644 --- a/tools/perf/lib/include/perf/event.h +++ b/tools/perf/lib/include/perf/event.h @@ -241,4 +241,10 @@ struct aux_event { __u64 flags; }; +struct itrace_start_event { + struct perf_event_header header; + __u32 pid; + __u32 tid; +}; + #endif /* __LIBPERF_EVENT_H */ diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index db901aea33af..f89e8ddadd46 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -332,11 +332,6 @@ struct events_stats { u32 nr_proc_map_timeout; }; -struct itrace_start_event { - struct perf_event_header header; - u32 pid, tid; -}; - struct context_switch_event { struct perf_event_header header; u32 next_prev_pid; -- 2.21.0