Skip to content

Commit

Permalink
use sed to find linux_proc_banner
Browse files Browse the repository at this point in the history
Closes #24

Signed-off-by: Pavel Boldin <boldin.pavel@gmail.com>
  • Loading branch information
paboldin committed Jan 8, 2018
1 parent efd2400 commit a57b524
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#!/bin/sh

find_linux_proc_banner() {
$2 awk '
/linux_proc_banner/ {
if (strtonum("0x"$1))
print $1;
exit 0;
}' $1
$2 sed -n -E 's/^(f[0-9a-f]+) .* linux_proc_banner$/\1/p' $1
}

echo "looking for linux_proc_banner in /proc/kallsyms"
Expand Down

0 comments on commit a57b524

Please sign in to comment.