Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
joro
/
linux
/
refs/tags/rpm-3.0.101-0.21
/
.
/
scripts
/
xen-hypercalls.sh
blob: 3bd24257dd75342559f0db19b008d9221fcd8c6b [
file
] [
log
] [
blame
]
#!/bin/sh
out
=
"$1"
shift
in
=
"$@"
for
i
in
$in
;
do
$CPP
-
dD
-
imacros $i
-
x c
/
dev
/
null
done
|
sed
-
n
's,#define __HYPERVISOR_\([a-z0-9_]*\)[[:space:]]\+\(__HYPERVISOR_arch_\)\?[0-9].*,HYPERCALL(\1),p'
\
|
grep
-
v
'(arch_[0-9]\+)'
|
sort
|
uniq
>
$out