• Arnaldo Carvalho de Melo's avatar
    perf beauty ioctl: Add generator for USBDEVFS_ ioctl commands · 870c3f40
    Arnaldo Carvalho de Melo authored
    Will be associated with fds with the right device major.
    
      $ tools/perf/trace/beauty/usbdevfs_ioctl.sh
      static const char *usbdevfs_ioctl_cmds[] = {
    	[0] = "CONTROL",
    	[10] = "SUBMITURB",
    	[11] = "DISCARDURB",
    	[12] = "REAPURB",
    	[13] = "REAPURBNDELAY",
    	[14] = "DISCSIGNAL",
    	[15] = "CLAIMINTERFACE",
    	[16] = "RELEASEINTERFACE",
    	[17] = "CONNECTINFO",
    	[18] = "IOCTL",
    	[19] = "HUB_PORTINFO",
    	[20] = "RESET",
    	[21] = "CLEAR_HALT",
    	[22] = "DISCONNECT",
    	[23] = "CONNECT",
    	[24] = "CLAIM_PORT",
    	[25] = "RELEASE_PORT",
    	[26] = "GET_CAPABILITIES",
    	[27] = "DISCONNECT_CLAIM",
    	[28] = "ALLOC_STREAMS",
    	[29] = "FREE_STREAMS",
    	[2] = "BULK",
    	[30] = "DROP_PRIVILEGES",
    	[31] = "GET_SPEED",
    	[3] = "RESETEP",
    	[4] = "SETINTERFACE",
    	[5] = "SETCONFIGURATION",
    	[8] = "GETDRIVER",
      };
    
      #if 0
      static const char *usbdevfs_ioctl_32_cmds[] = {
    	[0] = "CONTROL32",
    	[10] = "SUBMITURB32",
    	[12] = "REAPURB32",
    	[13] = "REAPURBNDELAY32",
    	[14] = "DISCSIGNAL32",
    	[18] = "IOCTL32",
    	[2] = "BULK32",
      };
      #endif
      $
    
    Leaving the '32' variants commented, later we can try to support those
    as well, from some other hint (maybe something about the thread issuing
    the ioctls) and from the _IOC_SIZE(cmd).
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-neq1lrji5k4ku0rktn7ytnri@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    870c3f40
Name
Last commit
Last update
..
accounting Loading commit data...
arch Loading commit data...
bpf Loading commit data...
build Loading commit data...
cgroup Loading commit data...
crypto Loading commit data...
firewire Loading commit data...
gpio Loading commit data...
hv Loading commit data...
iio Loading commit data...
include Loading commit data...
kvm/kvm_stat Loading commit data...
laptop Loading commit data...
leds Loading commit data...
lib Loading commit data...
memory-model Loading commit data...
nfsd Loading commit data...
objtool Loading commit data...
pci Loading commit data...
pcmcia Loading commit data...
perf Loading commit data...
power Loading commit data...
scripts Loading commit data...
spi Loading commit data...
testing Loading commit data...
thermal/tmon Loading commit data...
time Loading commit data...
usb Loading commit data...
virtio Loading commit data...
vm Loading commit data...
wmi Loading commit data...
Makefile Loading commit data...