Really stupid /sys/modules patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've been using systemtap for some debugging and I noticed that it
can't probe a lot of modules. Turns out it's kind of silly, the
sections section of /sys/module is limited to 32bytes and many of the actual sections are a a bit longer than that.
It seems to fix systemtap.
- --
signature
*Ian S. Nelson
PGP/GPG <http://www.gnupg.org/(en)/documentation/faqs.html#q1.1> email preferred.
Public Key: 00D3D983
<http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x00D3D983>
Fingerprint: 3EFD7B86B888D7E229B69E97576F1B9700D3D983 *
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE9uRUV28blwDT2YMRAuGiAJsHzufM8g865+19gecHpIAt57c6SACbBilu e6o2ByDqZT/xnQgBJeGa0DI=
=32cp
-----END PGP SIGNATURE-----
CREDITS +2 -1
@@ -2469,7 +2469,8 @@ S: United Kingdom N: Ian S. Nelson -E: [email protected] +E: [email protected] +P: 1024D/00D3D983 3EFD 7B86 B888 D7E2 29B6 9E97 576F 1B97 00D3 D983 D: Minor mmap and ide hacks S: 1370 Atlantis Ave. S: Lafayette CO, 80026
include/linux/module.h +1 -1
@@ -217,7 +217,7 @@ };/* Similar stuff for section attributes. */ -#define MODULE_SECT_NAME_LEN 32 +#define MODULE_SECT_NAME_LEN 96struct module_sect_attr {struct module_attribute mattr;