aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/trace/beauty/madvise_behavior.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/trace/beauty/madvise_behavior.sh')
-rwxr-xr-xtools/perf/trace/beauty/madvise_behavior.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/trace/beauty/madvise_behavior.sh b/tools/perf/trace/beauty/madvise_behavior.sh
index 60ef8640ee70..431639eb4d29 100755
--- a/tools/perf/trace/beauty/madvise_behavior.sh
+++ b/tools/perf/trace/beauty/madvise_behavior.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 *madvise_advices[] = {\n"
regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MADV_([[:alnum:]_]+)[[:space:]]+([[:digit:]]+)[[:space:]]*.*'