You are not logged in.
Hello,
I'm simply trying to watch the value of a varible using perf probe:
sudo perf probe ex:5 i
I received this output:
The /lib/modules/4.13.12-1-ARCH/build/vmlinux file has no debug information.
Rebuild with CONFIG_DEBUG_INFO=y, or install an appropriate debuginfo package.
Error: Failed to add events.
I had a look at this: https://wiki.archlinux.org/index.php/De … ing_Traces
and this:
https://wiki.archlinux.org/index.php/ke … figuration
I'm scared to touch vmlinux and crash my system. I wonder if this is the only solution.
I hope somebody can give me some advice.
P.S. I'm aware the system needs an upgrade. But I'm developing on this and need specific versions of some tools that I use until I'm done with my research.
Thanks!
Offline
If you need to use that command then you would need a kernel built with CONFIG_DEBUG_INFO=y and rebuilding 4.13.12-1-ARCH will fail as the toolchain is not longer compatible with that source without patching.
Offline
hmm, so I'm stuck. Ok thanks for the reply
Offline
Well, you could use https://wiki.archlinux.org/index.php/Arch_Linux_Archive to install all the packages from the date when you last updated, and use *that* toolchain to recompile the kernel.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
There may also be other ways to monitor the variable.
Offline
@Eschwartz: I'm not super confidant to try it tbh ^^
@loqs: I'm actually trying to estimate loop trip counts. I'm not very knowledgeable about perf. I was poking around since I saw some "iterations" in the output of perf record where I sample branches taken. I couldn't go further than that
Offline