Re: [patch] thread-aware coredumps, 2.5.43-C3

From: Ulrich Drepper (drepper@redhat.com)
Date: Sun Nov 03 2002 - 02:32:01 EST


Pavel Machek wrote:

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

>>Having the last branch before a crash would be cool. Its easy to
>>add note
>
>
> How do you get that info in the first place? I do not think CPU stores
> info about last branch it did...

Haven't seen a reply so far so here it goes.

Look at Intel's System Programming manual for P4. One of the MSRs
stores this information. 0x1d7 on P4/P4 Xeon.

- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9xND12ijCOnn/RHQRArenAKCxDdvn7stItfZJaQiAkrgHtf55UQCfTQ/a
Wng6nzdmSip5ZXrN6Mh4Hrs=
=dXdO
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:28 EST