any way to see the running kernel's "vermagic" string?

Frank Ch. Eigler fche at redhat.com
Tue Oct 16 14:35:12 EDT 2012


"Robert P. J. Day" <rpjday at crashcourse.ca> writes:

>   perhaps i've just overlooked it but is there an easy way to see the
> current kernel's calculated "vermagic" string, as defined in the
> header file include/linux/vermagic.h thusly? [...]

Another way is systemtap:

# stap -g -e 'probe begin { log ( %{ VERMAGIC_STRING /* string */ %} ) exit()  }'
3.1.0-7.fc16.x86_64 SMP mod_unload 

- FChE



More information about the Kernelnewbies mailing list