Back to home page

LXR

 
 

    


0001 #!/bin/sh
0002 out="$1"
0003 shift
0004 in="$@"
0005 
0006 for i in $in; do
0007         eval $CPP $LINUXINCLUDE -dD -imacros "$i" -x c /dev/null
0008 done | \
0009 awk '$1 == "#define" && $2 ~ /__HYPERVISOR_[a-z][a-z_0-9]*/ { v[$3] = $2 }
0010         END {   print "/* auto-generated by scripts/xen-hypercall.sh */"
0011                 for (i in v) if (!(v[i] in v))
0012                         print "HYPERCALL("substr(v[i], 14)")"}' | sort -u >$out