2 /^static __init int kvm_init\
(/ { anon_inodes =
1 }
4 /return 0;/ && anon_inodes
{
5 print "\tr = kvm_init_anon_inodes();";
7 print "\t\t__free_page(bad_page);";
13 /^static __exit void kvm_exit
/ { anon_inodes_exit =
1 }
15 /\
}/ && anon_inodes_exit
{
16 print "\tkvm_exit_anon_inodes();";
20 /kmem_cache_create
/ { kmem_cache_create =
1 }
22 /NULL\
)/ && kmem_cache_create
{
23 sub(/NULL\
)/, "KMEM_CACHE_CREATE_CTOR_DTOR)");
28 printf("MODULE_INFO(version, \"%s\");\n", version
)