Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8159685ybn; Tue, 1 Oct 2019 04:13:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAJH9DF5vD87zNtZRK3zG4e0kMFAoRdpPvNIPa4LlX7t3NpzjP2fdx5tElAbJUPF5DCgii X-Received: by 2002:a17:906:fd1:: with SMTP id c17mr23308100ejk.45.1569928431670; Tue, 01 Oct 2019 04:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569928431; cv=none; d=google.com; s=arc-20160816; b=q0LIW5M1P/ZwXi+l5Nxy1YNZ/vacNWuKdIkckUZPXk9ayQ4aUx/xaprSHvn6EhH7xQ SQD3tDz5/c6FSviB2wzpycjPN3Xz1JKqoGKe13BwqdGVZYcReH7KGixj2ov4kmgN6m5d yyo4WOTOdSAc6REo8ZfWbcapxZLAgxCQ2IkrSwhtAQchlSVwKMSPeHddlKJ4kUWT8738 +Fc0i3kLTiIs+YcfvG3jkH+SE2LUPXNTmENyYeVI87ipPkPGrJReczq1llB796uIJOaE yo85Sm8E9xdXjJV5ZFvL2T5dg8pWYIiQ+4gucpu8uJjU0UXE5nlxZ0Tql4He177H/hmu lGuA== 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; bh=tspO4epgqvdOR+W7bo7YNZGvDYDaAQw0DlfGZlsNpys=; b=qUxXHWIZMJRMbZ3kxYGVPdEqXTRJBFl/hboQjDttGDfVAOmwtIBHfhCjccX0DJp29a kQaBK2hQdPExBF17cemCAqMLGo0IeLmwbAIMMjvM+Ll+0ysRjNkh8f7zk+tm2EqawI6F kpkyOArYvn5WNxbXmMypfcN6FNREJg2Fi/xuwoRUkS2TTSShAvDEZy4KWQcQRJyOsFkO 6UzefQM2LcihYwGuo7R4kfak2JToajv+BZKEEu8/EzLuleN+T+vVSut8CO60OhDJmNWA B9uECqSjaOwk/6bqrWVGLVIAGPbqKOL3Y/9FEIp2EGYTs7ni5Y5W3arABbRy9Jfz0vev eYLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HAZD1W5e; 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=pass (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 jo18si8849160ejb.27.2019.10.01.04.13.27; Tue, 01 Oct 2019 04:13:51 -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=@kernel.org header.s=default header.b=HAZD1W5e; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731507AbfJALMy (ORCPT + 99 others); Tue, 1 Oct 2019 07:12:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:34810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731480AbfJALMx (ORCPT ); Tue, 1 Oct 2019 07:12:53 -0400 Received: from quaco.ghostprotocols.net (177.206.223.101.dynamic.adsl.gvt.net.br [177.206.223.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6EA7621924; Tue, 1 Oct 2019 11:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569928372; bh=01Fgx2X/pbHtHLDYadB2PI9BcV53+uAq9QGr+OEnWcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAZD1W5eEYrfKEikKmzuYoxuZwXEnzdC2IGJXO0EZy5mE6014ObcyandrlQRGWK6L moSCnPBmiJl+5vLFMUnsifQnmpHb3ubxQOgyprPgRJxk1QJCADZRFIGMzl+QnDNKBh 0D38hJ+ivK//kGpJLoixI3xhzsi6Pp0I98hUcdz0= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Alan Stern , Adrian Hunter , Brendan Gregg , Greg Kroah-Hartman , =?UTF-8?q?Luis=20Cl=C3=A1udio=20Gon=C3=A7alves?= Subject: [PATCH 06/24] tools headers uapi: Sync linux/usbdevice_fs.h with the kernel sources Date: Tue, 1 Oct 2019 08:11:58 -0300 Message-Id: <20191001111216.7208-7-acme@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191001111216.7208-1-acme@kernel.org> References: <20191001111216.7208-1-acme@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo To pick up the changes from: 4ed3350539aa ("USB: usbfs: Add a capability flag for runtime suspend") 7794f486ed0b ("usbfs: Add ioctls for runtime power management") This triggers these changes in the kernel sources, automagically supporting these new ioctls in the 'perf trace' beautifiers. Soon this will be used in things like filter expressions for tracepoints in 'perf record', 'perf trace', 'perf top', i.e. filter expressions will do a lookup to turn things like USBDEVFS_WAIT_FOR_RESUME into _IO('U', 35) before associating the tracepoint expression to tracepoint perf event. $ tools/perf/trace/beauty/usbdevfs_ioctl.sh > before $ cp include/uapi/linux/usbdevice_fs.h tools/include/uapi/linux/usbdevice_fs.h $ git diff diff --git a/tools/include/uapi/linux/usbdevice_fs.h b/tools/include/uapi/linux/usbdevice_fs.h index 78efe870c2b7..cf525cddeb94 100644 --- a/tools/include/uapi/linux/usbdevice_fs.h +++ b/tools/include/uapi/linux/usbdevice_fs.h @@ -158,6 +158,7 @@ struct usbdevfs_hub_portinfo { #define USBDEVFS_CAP_MMAP 0x20 #define USBDEVFS_CAP_DROP_PRIVILEGES 0x40 #define USBDEVFS_CAP_CONNINFO_EX 0x80 +#define USBDEVFS_CAP_SUSPEND 0x100 /* USBDEVFS_DISCONNECT_CLAIM flags & struct */ @@ -223,5 +224,8 @@ struct usbdevfs_streams { * extending size of the data returned. */ #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len) +#define USBDEVFS_FORBID_SUSPEND _IO('U', 33) +#define USBDEVFS_ALLOW_SUSPEND _IO('U', 34) +#define USBDEVFS_WAIT_FOR_RESUME _IO('U', 35) #endif /* _UAPI_LINUX_USBDEVICE_FS_H */ $ tools/perf/trace/beauty/usbdevfs_ioctl.sh > after $ diff -u before after --- before 2019-09-27 11:41:50.634867620 -0300 +++ after 2019-09-27 11:42:07.453102978 -0300 @@ -24,6 +24,9 @@ [30] = "DROP_PRIVILEGES", [31] = "GET_SPEED", [32] = "CONNINFO_EX", + [33] = "FORBID_SUSPEND", + [34] = "ALLOW_SUSPEND", + [35] = "WAIT_FOR_RESUME", [3] = "RESETEP", [4] = "SETINTERFACE", [5] = "SETCONFIGURATION", $ This addresses the following perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/usbdevice_fs.h' differs from latest version at 'include/uapi/linux/usbdevice_fs.h' diff -u tools/include/uapi/linux/usbdevice_fs.h include/uapi/linux/usbdevice_fs.h Cc: Alan Stern Cc: Adrian Hunter Cc: Brendan Gregg Cc: Greg Kroah-Hartman Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-x1rb109b9nfi7pukota82xhj@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/include/uapi/linux/usbdevice_fs.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/include/uapi/linux/usbdevice_fs.h b/tools/include/uapi/linux/usbdevice_fs.h index 78efe870c2b7..cf525cddeb94 100644 --- a/tools/include/uapi/linux/usbdevice_fs.h +++ b/tools/include/uapi/linux/usbdevice_fs.h @@ -158,6 +158,7 @@ struct usbdevfs_hub_portinfo { #define USBDEVFS_CAP_MMAP 0x20 #define USBDEVFS_CAP_DROP_PRIVILEGES 0x40 #define USBDEVFS_CAP_CONNINFO_EX 0x80 +#define USBDEVFS_CAP_SUSPEND 0x100 /* USBDEVFS_DISCONNECT_CLAIM flags & struct */ @@ -223,5 +224,8 @@ struct usbdevfs_streams { * extending size of the data returned. */ #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len) +#define USBDEVFS_FORBID_SUSPEND _IO('U', 33) +#define USBDEVFS_ALLOW_SUSPEND _IO('U', 34) +#define USBDEVFS_WAIT_FOR_RESUME _IO('U', 35) #endif /* _UAPI_LINUX_USBDEVICE_FS_H */ -- 2.21.0