Skip to content

oprofile, x86: allow backtrace for 32bit apps under 64bit kernel

Jiri Olsa lkml 2 versions – Applied

Status from this message: Applied to oprofile/core. Thanks Jirka.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- using struct stack_frame for 64bit processes
- using struct stack_frame_ia32 for compat processes
- added inline function x86_backtrace_32 which is just empty stub for !CONFIG_COMPAT
- I did not figure out a smart way to share dump code between 32 and 64 bits. I'm currently under impression the code is so far easy and light enough to live separately and mixing the code would come with more complexity.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2oprofile, x86: using struct stack_frame for 64bit processes dumparch/x86/oprofile/backtrace.c+7 -120 replies
2/2oprofile, x86: adding backtrace dump for 32bit process in compat modearch/x86/oprofile/backtrace.c+53 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] oprofile, x86: allow backtrace for 32bit apps under 64bit kernel

hi,

I'm sending reworked version of the support for backtrace of ia32 applications under 64bit kernels.

updates are based on comments by Robert Richter

v2:
- using struct stack_frame for 64bit processes
- using struct stack_frame_ia32 for compat processes
- added inline function x86_backtrace_32 which is just empty stub for !CONFIG_COMPAT
- I did not figure out a smart way to share dump code between 32 and 64 bits. I'm currently under impression the code is so far easy and light enough to live separately and mixing the code would come with more complexity.

attached patches:
- 1/2 using struct stack_frame for 64bit processes dump
- 2/2 adding backtrace dump for 32bit process in compat mode

please let me know what you think

thanks,
jirka

---
 arch/x86/oprofile/backtrace.c |   70 ++++++++++++++++++++++++++++++++++------
 1 files changed, 59 insertions(+), 11 deletions(-)