linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] checkstack: add x86_64 arch. support
@ 2004-10-21  0:10 Randy.Dunlap
  2004-10-21  8:00 ` Jörn Engel
  0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2004-10-21  0:10 UTC (permalink / raw)
  To: lkml, akpm, joern, sam

[-- Attachment #1: Type: text/plain, Size: 5 bytes --]


---

[-- Attachment #2: checkstack_x64.patch --]
[-- Type: text/x-patch, Size: 909 bytes --]


Add support for x86_64 arch. to 'make checkstack' (checkstack.pl).

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
 scripts/checkstack.pl |    3 +++
 1 files changed, 3 insertions(+)

diff -Naurp ./scripts/checkstack.pl~checkstack_x64 ./scripts/checkstack.pl
--- ./scripts/checkstack.pl~checkstack_x64	2004-10-18 14:53:45.000000000 -0700
+++ ./scripts/checkstack.pl	2004-10-20 16:52:14.434261304 -0700
@@ -39,6 +39,9 @@ my (@stack, $re, $x, $xs);
 	} elsif ($arch =~ /^i[3456]86$/) {
 		#c0105234:       81 ec ac 05 00 00       sub    $0x5ac,%esp
 		$re = qr/^.*[as][du][db]    \$(0x$x{1,8}),\%esp$/o;
+	} elsif ($arch eq 'x86_64') {
+		#    2f60:	48 81 ec e8 05 00 00 	sub    $0x5e8,%rsp
+		$re = qr/^.*[as][du][db]    \$(0x$x{1,8}),\%rsp$/o;
 	} elsif ($arch eq 'ia64') {
 		#e0000000044011fc:       01 0f fc 8c     adds r12=-384,r12
 		$re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] checkstack: add x86_64 arch. support
  2004-10-21  0:10 [PATCH] checkstack: add x86_64 arch. support Randy.Dunlap
@ 2004-10-21  8:00 ` Jörn Engel
  0 siblings, 0 replies; 2+ messages in thread
From: Jörn Engel @ 2004-10-21  8:00 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml, akpm, sam

Patch is trivial enough.  Added my line, in case that makes a
difference.

Jörn

-- 
Don't worry about people stealing your ideas. If your ideas are any good,
you'll have to ram them down people's throats.
-- Howard Aiken quoted by Ken Iverson quoted by Jim Horning quoted by
   Raph Levien, 1979

Add support for x86_64 arch. to 'make checkstack' (checkstack.pl).

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>

diffstat:=
 scripts/checkstack.pl |    3 +++
 1 files changed, 3 insertions(+)

diff -Naurp ./scripts/checkstack.pl~checkstack_x64 ./scripts/checkstack.pl
--- ./scripts/checkstack.pl~checkstack_x64	2004-10-18 14:53:45.000000000 -0700
+++ ./scripts/checkstack.pl	2004-10-20 16:52:14.434261304 -0700
@@ -39,6 +39,9 @@ my (@stack, $re, $x, $xs);
 	} elsif ($arch =~ /^i[3456]86$/) {
 		#c0105234:       81 ec ac 05 00 00       sub    $0x5ac,%esp
 		$re = qr/^.*[as][du][db]    \$(0x$x{1,8}),\%esp$/o;
+	} elsif ($arch eq 'x86_64') {
+		#    2f60:	48 81 ec e8 05 00 00 	sub    $0x5e8,%rsp
+		$re = qr/^.*[as][du][db]    \$(0x$x{1,8}),\%rsp$/o;
 	} elsif ($arch eq 'ia64') {
 		#e0000000044011fc:       01 0f fc 8c     adds r12=-384,r12
 		$re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-21  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-21  0:10 [PATCH] checkstack: add x86_64 arch. support Randy.Dunlap
2004-10-21  8:00 ` Jörn Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).