Skip to contentSkip to conversation

-rt x86_64 fix for latency tracing

PATCH Clark Williams 2 participants 2 messages Jun 2, 2006

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ingo/Steve,

The included patch fixes a bug that causes a segfault in the init thread when latency tracing is enabled on x86_64 kernels. Not sure if it's completely correct, but it gets me past my segfault and lets me complete booting.

arch/x86_64/kernel/entry.S +0 -0
index 066497a..b124409 100644

- --- a/arch/x86_64/kernel/entry.S
+++ b/arch/x86_64/kernel/entry.S
@@ -1089,7 +1089,7 @@ ENTRY(mcount)

        mov 0x0(%rbp),%rax
        mov 0x8(%rbp),%rdi

- - mov 0x8(%rax),%rsi
+ mov 0x10(%rax),%rsi

call __trace

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEgJOOHyuj/+TTEp0RAhkEAKDWQu4cvGBvCQi1UyQcDalbR6SPZACglMRH rVy1tTWHbatDx37pXHAXs1s=
=5Qi9
-----END PGP SIGNATURE-----

#1 lore raw

good catch!

Ingo

Quoted 31 lines · Clark Williams

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ingo/Steve,

The included patch fixes a bug that causes a segfault in the init thread when latency tracing is enabled on x86_64 kernels. Not sure if it's completely correct, but it gets me past my segfault and lets me complete booting.

arch/x86_64/kernel/entry.S +2 -3
index 066497a..b124409 100644
- --- a/arch/x86_64/kernel/entry.S
+++ b/arch/x86_64/kernel/entry.S
@@ -1089,7 +1089,7 @@ ENTRY(mcount)
 
        mov 0x0(%rbp),%rax
        mov 0x8(%rbp),%rdi
- -       mov 0x8(%rax),%rsi
+       mov 0x10(%rax),%rsi
 
        call   __trace
 
-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEgJOOHyuj/+TTEp0RAhkEAKDWQu4cvGBvCQi1UyQcDalbR6SPZACglMRH rVy1tTWHbatDx37pXHAXs1s=
=5Qi9
-----END PGP SIGNATURE-----