This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH 3/4] x86: add kprobe-booster to X86_64
- From: Harvey Harrison <harvey dot harrison at gmail dot com>
- To: Ingo Molnar <mingo at elte dot hu>
- Cc: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>, Jim Keniston <jkenisto at us dot ibm dot com>, Roland McGrath <roland at redhat dot com>, Arjan van de Ven <arjan at infradead dot org>, prasanna at in dot ibm dot com, anil dot s dot keshavamurthy at intel dot com, davem at davemloft dot net, systemtap-ml <systemtap at sources dot redhat dot com>, LKML <linux-kernel at vger dot kernel dot org>, Andrew Morton <akpm at linux-foundation dot org>
- Date: Mon, 17 Dec 2007 14:27:44 -0800
- Subject: [PATCH 3/4] x86: add kprobe-booster to X86_64
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=1qxT8FipckgXDvgdHH9uJH4Y8kOgwWr+rsEAytXFbXw=; b=hPFvNUJM/DL4OUd63nq27DU8O3NyR0JMIo2z4R2+mFzwrgxsEsXDlTtVrrqVCCGU6kxbC8Q16VaFPohnPRnUAVEjuY32MrB5+EGQh7+bqc82IuxiHIxzZNX2Y/MR2+hSOD678e7L28CiI0VzLaO+6K/HmfW/tJz6lzRtsaellEk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=hVv8JbxPLaMvyYsfpcg8alYnMCnAra8ec2Oae92TmDaAX1i+uKcut2l3bm3nTNPk6p15Vomc//eb1oi2IQjqqD/Hp6oAB+8mZNk9pl3Rgc41O25xa0OnFR/n6z9fmKi02gjDkXSefPYqcWdckqosart3TMOMc0dbyzhZbrbuDrs=
Sorry I missed an ifdef in this patch in the following hunk:
@@ -183,6 +185,9 @@ retry:
}
switch (opcode & 0xf0) {
+#ifdef X86_64
+ case 0x40:
+ goto retry; /* REX prefix is boostable */
case 0x60:
if (0x63 < opcode && opcode < 0x67)
goto retry; /* prefixes */
Just add the #ifdef to only catch case 0x40.
@@ -183,6 +185,10 @@ retry:
}
switch (opcode & 0xf0) {
+#ifdef X86_64
+ case 0x40:
+ goto retry; /* REX prefix is boostable */
+#endif
case 0x60:
if (0x63 < opcode && opcode < 0x67)
goto retry; /* prefixes */
Cheers,
Harvey