Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp836387ybl; Fri, 9 Aug 2019 14:48:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6KuDg8Zxyyp9I+xUj2g86yNCLls7Eo4h4sbxymxkNUuuK5iH4gGaswz6n1higuaJGaWrx X-Received: by 2002:a63:d34c:: with SMTP id u12mr19593860pgi.114.1565387328672; Fri, 09 Aug 2019 14:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565387328; cv=none; d=google.com; s=arc-20160816; b=a4BBY2HojS6Zm2If0N/7KhG06xXtKCjFPu58sUlQBLM6b5LFgGtoWzBJnnbLUPMh0+ ZkmbzFIeqHeXWCrXU7jjQNraIXiqrp+AhXsuV6B7fntlqIP1+rYHAgbjqWkRuatSbUKC HNwMajMSXkkwXaUBbiH6iGET+v9RU6/IyZmgkTxIHjN9yYD9qzfxoGvkh+7Esi2d6xrI ypGMYcvBkOe8URp/Pwl3xRB9d9yj8Z+8Mkx6FqmBFIyQCd7YNVeE/bwu+PRFUmqexn1U keirZMQmKHFq1yb7MM6W4GRnZVLl+uadCA1owjJoDfghlYF9iOWahRAEunuV/jg0TR3N oYyg== 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 :dkim-signature:dkim-signature; bh=M+Jh0rXI0nh88AZ6KuRStyi951WXDkzY3rdW8qCW/Rg=; b=WN2thW7QS/HVT1jnaQ6v7mC+TtGiRe40HWlABQpKN5oVqzKmXfeDbMF2ayVPPYcA1R pMhivo6zMTGqi+Uga5ogUsMxjsiZBO8abQ9nwSx6HCYXXVRXoXsPgKKhBdosoCmYkmsg n5wmsQep7qO9vPvWDWEfh/xV4j9IMEfLneqmD09uVzU3L6ljNiaE5ykB4vIlpJjZhm9m SMQNX5nEzA6T4drADemmTj0RUxB8AGAxPP6mTZBSEshiNXGMBluGzZaC54oQ+EotvAQV Le0UCZXbmPrAbM+bcWdvozZ32Qcum3EioyK+ghsC92yFjej70q4wOKMXxUxnYxGKrYUi y5bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=UArCW82d; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MIe7e5rN; 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 18si54957344pgf.457.2019.08.09.14.48.33; Fri, 09 Aug 2019 14:48:48 -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; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=UArCW82d; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MIe7e5rN; 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 S1729156AbfHIVri (ORCPT + 99 others); Fri, 9 Aug 2019 17:47:38 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:37625 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729089AbfHIVrh (ORCPT ); Fri, 9 Aug 2019 17:47:37 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1D6EF20D4; Fri, 9 Aug 2019 17:47:36 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 09 Aug 2019 17:47:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=M+Jh0rXI0nh88 AZ6KuRStyi951WXDkzY3rdW8qCW/Rg=; b=UArCW82dFWjv6htofCoBSGWmZryiV vQPSimVMCBLKKJjw2W7gcRDBsNqyVxa982v7yOWSBn5R2ZDCarcaVhO5hc9pchWe x474jnkUGhsUjt00fwHG7juabwwBnLNhy6YnAc5RAxXwkQhd16/OVxPKoBqtk1G8 GS6HLfAW+sadLw6TbXS+0ZhmMBzToycqy7oj9WORQbA2d+6kuwe+VxvRRtpGpLGz qW4TPPmSRQjxdAjlznuK140Xhd7bnfoFDIhxAFC5CHbYa1aKfEipYONPebl4KjGh ahUb19Guvtzw8DUPejdqkbAJC7ycR5JJfNTrn29pxuIoYbHFFYOydaRgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=M+Jh0rXI0nh88AZ6KuRStyi951WXDkzY3rdW8qCW/Rg=; b=MIe7e5rN Pnaxkrj/ceTijCpVpmVeq2+YwxVXCxMcysuMPq+dpZxy+3dLlE+uL+Z6bnt6Uwh4 QaOMXeK5AUp8DnboldyhyXwVJ5BQX+lF/SlS3xVfOIAHAloHnoasfoUemrHZC9Rs yQwsqncDJZGd0Y8yAs9wA5E9uyrJpKwI4vkJwABcghpReHh1i/5kcTx3ZVjhLSsy qU5dyehZGScGrJbImCCe1PQaVHSuWzm/4zehUPhuPBoGMm41VMDhbWe94tgFrE3Z 9YpUZjKNoIx1hVnbrzQJejWHt4rXEGeKuB58ejBPKnnvy7rLdunEFIogOnqVvO8f Sg1ghJg6bPROTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddukedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpefhvf fufffkofgjfhgggfestdekredtredttdenucfhrhhomhepffgrnhhivghlucgiuhcuoegu gihusegugihuuhhurdighiiiqeenucfkphepudelledrvddtuddrieegrddufeeknecurf grrhgrmhepmhgrihhlfhhrohhmpegugihusegugihuuhhurdighiiinecuvehluhhsthgv rhfuihiivgepud X-ME-Proxy: Received: from dlxu-fedora-R90QNFJV.thefacebook.com (unknown [199.201.64.138]) by mail.messagingengine.com (Postfix) with ESMTPA id 65EB8380083; Fri, 9 Aug 2019 17:47:34 -0400 (EDT) From: Daniel Xu To: songliubraving@fb.com, yhs@fb.com, andriin@fb.com, peterz@infraded.org, mingo@redhat.com, acme@kernel.org Cc: Daniel Xu , ast@fb.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 bpf-next 3/4] tracing/probe: Sync perf_event.h to tools Date: Fri, 9 Aug 2019 14:46:41 -0700 Message-Id: <20190809214642.12078-4-dxu@dxuuu.xyz> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190809214642.12078-1-dxu@dxuuu.xyz> References: <20190809214642.12078-1-dxu@dxuuu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Daniel Xu --- tools/include/uapi/linux/perf_event.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 7198ddd0c6b1..65faa9b2a3b4 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -447,6 +447,24 @@ struct perf_event_query_bpf { __u32 ids[0]; }; +/* + * Structure used by below PERF_EVENT_IOC_QUERY_PROBE command + * to query information about the probe attached to the perf + * event. Currently only supports [uk]probes. + */ +struct perf_event_query_probe { + /* + * Set by the kernel to indicate number of times this probe + * was temporarily disabled + */ + __u64 nmissed; + /* + * Set by the kernel to indicate number of times this probe + * was hit + */ + __u64 nhit; +}; + /* * Ioctls that can be done on a perf event fd: */ @@ -462,6 +480,7 @@ struct perf_event_query_bpf { #define PERF_EVENT_IOC_PAUSE_OUTPUT _IOW('$', 9, __u32) #define PERF_EVENT_IOC_QUERY_BPF _IOWR('$', 10, struct perf_event_query_bpf *) #define PERF_EVENT_IOC_MODIFY_ATTRIBUTES _IOW('$', 11, struct perf_event_attr *) +#define PERF_EVENT_IOC_QUERY_PROBE _IOR('$', 12, struct perf_event_query_probe *) enum perf_event_ioc_flags { PERF_IOC_FLAG_GROUP = 1U << 0, -- 2.20.1