summaryrefslogtreecommitdiff
path: root/tools/perf/trace/beauty/perf_ioctl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/trace/beauty/perf_ioctl.sh')
-rwxr-xr-xtools/perf/trace/beauty/perf_ioctl.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/trace/beauty/perf_ioctl.sh b/tools/perf/trace/beauty/perf_ioctl.sh
index faea4237c793..6492c74df928 100755
--- a/tools/perf/trace/beauty/perf_ioctl.sh
+++ b/tools/perf/trace/beauty/perf_ioctl.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-header_dir=$1
+[ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/linux/
printf "static const char *perf_ioctl_cmds[] = {\n"
regex='^#[[:space:]]*define[[:space:]]+PERF_EVENT_IOC_(\w+)[[:space:]]+_IO[RW]*[[:space:]]*\([[:space:]]*.\$.[[:space:]]*,[[:space:]]*([[:digit:]]+).*'