Skip to content

Improvements to gdb-oneapi support - #53

Merged
lee218llnl merged 3 commits into
llnl:developfrom
abijaz:oneapi_gdb_upd
Oct 10, 2025
Merged

lee218llnl merged 3 commits into
llnl:developfrom
abijaz:oneapi_gdb_upd

Conversation

@abijaz

@abijaz abijaz commented Oct 10, 2025

Copy link
Copy Markdown
Contributor
  1. Replaced the MI command "-thread-info" with "thread apply" for retrieving the thread list. The previous MI command output could grow excessively large, making it inefficient for the readlines function to process. Now after this change the output of "thread apply" command is only a list of threads and will take less time in readlines function.

  2. The backtrace command now uses the "with print frame-arguments none --" option to enhance performance, as frame argument details are unnecessary for the STAT tool.

  3. The "STAT_COLLECT_SIMD_BT" option in gdb-oneapi STAT support is used to add lane information in thread id. So, using this environment increases the STAT capture time due to sequential calls per lane of a thread for the collection of the call stack. It is removed in this change because the function call stacks collected for lanes are identical , except for function argument values, which are not taken into consideration by STAT anyway.

abijaz added 3 commits October 9, 2025 19:03
Replaced the MI command "-thread-info" with "thread apply" for retrieving
the thread list.  The previous MI command output could grow excessively
large, making it inefficient for the readlines function to process.  Now
after this change the output of "thread apply" command is only a list
of threads and will take less time in readlines function.

The test file oneapi_gdb_test.py has been updated to test these changes.

Signed-off-by: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
The backtrace command now uses the "with print frame-arguments none --"
option to enhance performance, as frame argument details are unnecessary
for the STAT tool.

Signed-off-by: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
The "STAT_COLLECT_SIMD_BT" option in gdb-oneapi STAT support is used to add
lane information in thread id.  So, using this environment increases the
STAT capture time due to sequential calls per lane of a thread for the
collection of the call stack.  It is removed in this change because the
function call stacks collected for lanes are identical , except for
function argument values, which are not taken into consideration by STAT
anyway.

Signed-off-by: Abdul Basit Ijaz <abdul.b.ijaz@intel.com>
@lee218llnl
lee218llnl merged commit f595cd9 into llnl:develop Oct 10, 2025
@abijaz
abijaz deleted the oneapi_gdb_upd branch February 13, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants