Bug 28039 - Can systemtap support sparc arch?
Summary: Can systemtap support sparc arch?
Status: RESOLVED WONTFIX
Alias: None
Product: systemtap
Classification: Unclassified
Component: runtime (show other bugs)
Version: unspecified
: P2 critical
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 03:26 UTC by qiansiqiu1996
Modified: 2023-12-06 15:05 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qiansiqiu1996 2021-07-01 03:26:03 UTC
Dear developers of systemtap:

I don't see file about sparc in 'tapset' or 'runtime' directory.Can systemtap support the sparc arch?Can you add the support of this arch,I will thank you very much!




your fans
Comment 1 William Cohen 2021-07-01 17:13:21 UTC
I added the support for aarch64 to systemtap. It significant work to add architecture support for a new platform.  We welcome outside patches to support new architectures, but it is unlikely that we are going to develop one for SPARC.  One could use the changes in systemtap for aarch64 as suggestions of where changes need to be made to support a new architecture:

https://sourceware.org/git/?p=systemtap.git&a=search&h=HEAD&st=commit&s=aarch64

In the kernels sparc has HAVE_KPROBES in linux/arch/sparc/Kconfig, so kprobes are implemented.  However, I don't know have tested that is. I found some issues with the aarch64 implementation of kprobes when working on the systemtap aarch64 support.
Comment 2 qiansiqiu1996 2021-07-07 03:17:18 UTC
(In reply to William Cohen from comment #1)
> I added the support for aarch64 to systemtap. It significant work to add
> architecture support for a new platform.  We welcome outside patches to
> support new architectures, but it is unlikely that we are going to develop
> one for SPARC.  One could use the changes in systemtap for aarch64 as
> suggestions of where changes need to be made to support a new architecture:
> 
> https://sourceware.org/git/?p=systemtap.
> git&a=search&h=HEAD&st=commit&s=aarch64
> 
> In the kernels sparc has HAVE_KPROBES in linux/arch/sparc/Kconfig, so
> kprobes are implemented.  However, I don't know have tested that is. I found
> some issues with the aarch64 implementation of kprobes when working on the
> systemtap aarch64 support.

Dear good brother,are you the developer of systemtap?Can you add the support of sparc?Thank you very much!
I read the source of tapset and runtime,i think we can add the register.h and stp files to support a new architecture.
I know it support aarch64(i already use),but what i say is sparc.

Thank you very much!love you!
Comment 3 William Cohen 2021-07-08 17:44:25 UTC
Systemtap does not currently support SPARC processors. It is unlikely that SPARC support will be added by myself or others developers at Red Hat. However, we welcome contributions from outside developers.  Information about working on systemtap is available at:

https://sourceware.org/systemtap/getinvolved.html
Comment 4 William Cohen 2021-07-12 20:41:22 UTC
Jose E. Marchesi mentions a port of systemtap to SPARC on http://www.jemarch.net/cv.html .  Maybe those patches can be posted and that can be used as a starting point for SPARC support and further developed by people using SPARC Linux systems.
Comment 5 William Cohen 2023-11-29 16:34:24 UTC
Don't have any access to SPARC machines, so it is unlikely that we will be able to address this.