cobcd generated modules have issues with perf
To find hotspots in the code I analyze "slow" code with perf:
$ perf record \
--sample-cpu \
--call-graph dwarf \
--freq=32768 \
cobcrun PROG
And that works in general, but when the perf data is analyzed by
$ perf report --children
I get a bunch of error messages:
BFD: Dwarf Error: mangled line number section (bad file number).
Is there anything that can be done other than recompiling with cobc -g
instead of cobcd -g
?