aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/trace/beauty/pkey_alloc_access_rights.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/trace/beauty/pkey_alloc_access_rights.sh')
-rwxr-xr-xtools/perf/trace/beauty/pkey_alloc_access_rights.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/trace/beauty/pkey_alloc_access_rights.sh b/tools/perf/trace/beauty/pkey_alloc_access_rights.sh
index 62e51a02b839..e0a51aeb20b2 100755
--- a/tools/perf/trace/beauty/pkey_alloc_access_rights.sh
+++ b/tools/perf/trace/beauty/pkey_alloc_access_rights.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-header_dir=$1
+[ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/asm-generic/
printf "static const char *pkey_alloc_access_rights[] = {\n"
regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+PKEY_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+)[[:space:]]*'