Change the DEFINE_SIMPLE_ATTRIBUTE pattern to match the lost_records_get() definition also, so kvm_trace can compile on older kernels.
Signed-off-by: Eduardo Habkost <[EMAIL PROTECTED]> --- kernel/x86/hack-module.awk | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/x86/hack-module.awk b/kernel/x86/hack-module.awk index 3f364f8..7f59483 100644 --- a/kernel/x86/hack-module.awk +++ b/kernel/x86/hack-module.awk @@ -42,11 +42,11 @@ BEGIN { split("INIT_WORK tsc_khz desc_struct ldttss_desc64 desc_ptr " \ $0 = "\t.VMA_OPS_FAULT(fault) = VMA_OPS_FAULT_FUNC(" fcn ")," } -/^static int .*_stat_get/ { +/^static int (.*_stat_get|lost_records_get)/ { $3 = "__" $3 } -/DEFINE_SIMPLE_ATTRIBUTE.*_stat_get/ { +/DEFINE_SIMPLE_ATTRIBUTE.*(_stat_get|lost_records_get)/ { name = gensub(/,/, "", "g", $2); print "MAKE_SIMPLE_ATTRIBUTE_GETTER(" name ")" } -- 1.5.5.GIT -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html