From: Eduardo Habkost Subject: [PATCH 2/4] Hack DEFINE_SIMPLE_ATTRIBUTE for lost_records_get() also Date: Mon, 22 Sep 2008 14:52:06 -0300 Message-ID: <1222105928-23813-3-git-send-email-ehabkost@redhat.com> References: <1222105928-23813-1-git-send-email-ehabkost@redhat.com> Cc: kvm@vger.kernel.org, Eduardo Habkost To: Avi Kivity Return-path: Received: from mx2.redhat.com ([66.187.237.31]:38437 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752856AbYIVRw1 (ORCPT ); Mon, 22 Sep 2008 13:52:27 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m8MHqQQg024037 for ; Mon, 22 Sep 2008 13:52:26 -0400 In-Reply-To: <1222105928-23813-1-git-send-email-ehabkost@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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