From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWPbG-0005I5-Kp for qemu-devel@nongnu.org; Tue, 23 Sep 2014 08:54:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWPb9-0004z1-4Z for qemu-devel@nongnu.org; Tue, 23 Sep 2014 08:53:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWPb8-0004vz-Pz for qemu-devel@nongnu.org; Tue, 23 Sep 2014 08:53:38 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8NCrXBm004620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 23 Sep 2014 08:53:33 -0400 From: Markus Armbruster Date: Tue, 23 Sep 2014 14:53:28 +0200 Message-Id: <1411476811-24251-2-git-send-email-armbru@redhat.com> In-Reply-To: <1411476811-24251-1-git-send-email-armbru@redhat.com> References: <1411476811-24251-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] cleanup-trace-events.pl: Tighten search for trace event call List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com The script can get fooled too easily. For instance, it finds trace_megasas_io_read_start when looking for trace_megasas_io_read, and incorrectly concludes that event megasas_io_read is used. Supply -w to git-grep to tighten the search. Signed-off-by: Markus Armbruster --- scripts/cleanup-trace-events.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cleanup-trace-events.pl b/scripts/cleanup-trace-events.pl index cffbf16..7e808ef 100755 --- a/scripts/cleanup-trace-events.pl +++ b/scripts/cleanup-trace-events.pl @@ -25,7 +25,7 @@ sub out { while (<>) { if (/^(disable )?([a-z_0-9]+)\(/) { - open GREP, '-|', 'git', 'grep', '-l', "trace_$2" + open GREP, '-|', 'git', 'grep', '-lw', "trace_$2" or die "run git grep: $!"; my $fname; while ($fname = ) { -- 1.9.3