3 cat << EOF > trinity_smatch.h
7 /* Syscalls from arch/x86/syscalls/syscall_64.tbl */
11 #include "syscalls/syscalls.h"
15 cat smatch_trinity_
* >> trinity_smatch.c
18 for i
in $
(grep syscallentry smatch_trinity_
* | cut
-d ' ' -f 3) ; do
19 echo "extern struct syscallentry $i;" >> trinity_smatch.h
22 echo "" >> trinity_smatch.h
23 echo "struct syscalltable syscalls_smatch[] = {" >> trinity_smatch.h
25 for i
in $
(grep syscallentry smatch_trinity_
* | cut
-d ' ' -f 3) ; do
26 echo "{ .entry = &$i }," >> trinity_smatch.h
29 echo "};" >> trinity_smatch.h