News for hackers. Stuff that matters.
Re:Profiling with Ctrl-C by kragen on Tuesday September 03, 2024 @07:29AM (#41433786)
the vast majority of embedded cpus cannot run yocto or indeed linux, even the arms

but they all support gdb

Re:Profiling with Ctrl-C by kragen on Tuesday September 03, 2024 @10:24AM (#41435294)
(well, not all)
Re:Profiling with Ctrl-C by milianw on Tuesday September 03, 2024 @10:46AM (#41435478)
True, that's another good point. But again, this reasoning is very different to the one from the linked article and website - if you have oprofile or valgrind's cachegrind available, you clearly could get perf setup instead.

I'm not debating that manual GDB sampling has its place and value. I'm debating that perf is "lying" or that it's impossible to get hold of off-CPU samples, or profiling of multithreaded code in general.

Re:Profiling with Ctrl-C by kragen on Tuesday September 03, 2024 @11:26AM (#41435880)
yes, agreed