Thread (2 messages) 2 messages, 2 authors, 2021-07-14

Re: [PATCH 02/17] kallsyms: increase maximum kernel symbol length to 512

From: Eric W. Biederman <hidden>
Date: 2021-07-14 20:09:17
Also in: linux-kbuild, lkml, rust-for-linux

Possibly related (same subject, not in this thread)

Linus Torvalds [off-list ref] writes:
On Wed, Jul 14, 2021 at 11:20 AM Nick Desaulniers
[off-list ref] wrote:
quoted
Do we demangle rust symbols when printing a trace from a warn/panic?
That would be nice.
I think it would be pretty much required. Otherwise stack traces are
going to be very very painful.

In fact, I'm starting to think that Willy is right: we should use
hashes for the "real" symbol name, and have demangled names for
printing, and at no point would the kernel actually want or need to
have the nasty mangled names.

(This wouldn't be rust-specific - using hashes for module linking
sounds like a good diea for C code as well, even if the de-mangled
names for printing are then the regular ones)

Anybody interested in looking into that? It would make this "big
kernel symbols" patch immaterial.
Are you thinking the hashed kernel symbols need to have their types
included in the hash?  Or is this just a hash to make the names a
managable size?

Eric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help