MONDAY, AUGUST 10, 2026
gprofng — Proposed
gprofng: Properly generate file offset for gmon.out
Patch corrects gprofng's map file generation by using the correct file offset from core_text_sect.
H.J. Lu proposes a patch for gprofng to correctly generate the file offset for gmon.out when creating a map file. The fix involves retrieving the file offset from the filepos field of core_text_sect, which resolves a failure in the tmpdir/gp-gmon test case on Linux/x86-64.
In the Thread
- proposer
Submits a patch to fix gprofng's map file generation for gmon.out by using the correct file offset.
“When generating the map file for gmon.out, get the file offset from the filepos field of core_text_sect. This fixes FAIL: tmpdir/gp-gmon on Linux/x86-64. PR gprofng/34502 * src/gp-gmon.cc (gen_gmon_map): Get the file offset from the filepos field of core_text_sect.”