Skip to content

Instantly share code, notes, and snippets.

@ayosec
Created November 16, 2020 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayosec/19f61e01f43de55b3ad276923ed9258a to your computer and use it in GitHub Desktop.
Save ayosec/19f61e01f43de55b3ad276923ed9258a to your computer and use it in GitHub Desktop.
git clone --depth 1 https://github.com/torvalds/linux.git
cd linux
rg --json \
--mmap \
--multiline \
'^SYSCALL_DEFINE\d+\s*?\((?s).*?\)' \
| jq -r '
select(.type == "match")
| .data.lines.text
| gsub("\\s+"; " ")
' \
| sort -t\( -k2 \
| uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment