You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using bpftrace, it sometimes cannot record the packet type of the trace point probe!(mmtk, work, typename.as_ptr(), typename.len()); The log output looks like this:
According to Rust's API doc, std::any::type_name<T>() is currently implemented with "compiler diagnostics and debuginfo". I suspect the memory is mapped on an on-demand basis (but how?) and will not be available unless we load from it.
PR #1022 uses the workaround mentioned in #1020 (comment) and it satisfies our current need. We may further investigate the root cause of this and find better solutions in the future.
When using
bpftrace
, it sometimes cannot record the packet type of the trace pointprobe!(mmtk, work, typename.as_ptr(), typename.len());
The log output looks like this:In the following
bpftrace
script, the output ofstr(arg0, arg1)
is already an empty string.I even tried to print each individual character, but all characters are zero.
But if we print the string at address
140584722163486
in mmtk-core, it can properly print the string.Rust:
Output:
The only thing special about this string, as I can observe, is that this type name is longer than others.
I can ignore this packet for now because it is not my concern at this moment. But it is interesting why we can't capture the packet name in
bpftrace
.The text was updated successfully, but these errors were encountered: