qualify_inject_common(str, false, "inject argument");
}
-#ifdef HAVE_LINUX_KVM_H
static void
qualify_kvm(const char *const str)
{
if (strcmp(str, "vcpu") == 0) {
+#ifdef HAVE_LINUX_KVM_H
if (os_release >= KERNEL_VERSION(4, 16, 0))
kvm_run_structure_decoder_init();
else
- error_msg("-e kvm=vcpu option needs Linux 4.16.0 or higher");
+ error_msg("-e kvm=vcpu option needs"
+ " Linux 4.16.0 or higher");
+#else
+ error_msg("-e kvm=vcpu option is not implemented"
+ " for this architecture");
+#endif
} else {
error_msg_and_die("invalid -e kvm= argument: '%s'", str);
}
}
-#endif
static const struct qual_options {
const char *name;
{ "w", qualify_write },
{ "fault", qualify_fault },
{ "inject", qualify_inject },
-#ifdef HAVE_LINUX_KVM_H
{ "kvm", qualify_kvm },
-#endif
};
void
\n\
Filtering:\n\
-e expr a qualifying expression: option=[!]all or option=[!]val1[,val2]...\n\
- options: trace, abbrev, verbose, raw, signal, read, write, fault, inject"
-#ifdef HAVE_LINUX_KVM_H
- ", kvm"
-#endif
+ options: trace, abbrev, verbose, raw, signal, read, write, fault, inject, kvm"
"\n\
-P path trace accesses to path\n\
\n\