OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
tools
/
perf
/
trace
/
beauty
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:18 AM
rwxr-xr-x
📄
drm_ioctl.sh
551 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
kcmp_type.sh
249 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
kvm_ioctl.sh
435 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
madvise_behavior.sh
326 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
perf_ioctl.sh
361 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
pkey_alloc_access_rights.sh
358 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
prctl_option.sh
573 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
sndrv_ctl_ioctl.sh
288 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
sndrv_pcm_ioctl.sh
288 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
📄
vhost_virtio_ioctl.sh
722 bytes
01/28/2018 09:20:33 PM
rwxr-xr-x
Editing: drm_ioctl.sh
Close
#!/bin/sh drm_header_dir=$1 printf "#ifndef DRM_COMMAND_BASE\n" grep "#define DRM_COMMAND_BASE" $drm_header_dir/drm.h printf "#endif\n" printf "static const char *drm_ioctl_cmds[] = {\n" grep "^#define DRM_IOCTL.*DRM_IO" $drm_header_dir/drm.h | \ sed -r 's/^#define +DRM_IOCTL_([A-Z0-9_]+)[ ]+DRM_IO[A-Z]* *\( *(0x[[:xdigit:]]+),*.*/ [\2] = "\1",/g' grep "^#define DRM_I915_[A-Z_0-9]\+[ ]\+0x" $drm_header_dir/i915_drm.h | \ sed -r 's/^#define +DRM_I915_([A-Z0-9_]+)[ ]+(0x[[:xdigit:]]+)/\t[DRM_COMMAND_BASE + \2] = "I915_\1",/g' printf "};\n"