Skip to content

folly/tracing: Add ARM and AArch64 support to static tracepoints#5491

Open
hsadinen wants to merge 2 commits intoiovisor:masterfrom
hsadinen:harish3
Open

folly/tracing: Add ARM and AArch64 support to static tracepoints#5491
hsadinen wants to merge 2 commits intoiovisor:masterfrom
hsadinen:harish3

Conversation

@hsadinen
Copy link
Copy Markdown
Contributor

@hsadinen hsadinen commented Mar 8, 2026

This resolves USDT probe test failures on ARM64 platforms.
Without these changes, the .note.stapsdt section containing probe
information was missing entirely on ARM64, causing test failures when
attempting to find and attach to USDT probes in the BCC test suite.

Fixes: #5354

@ekyooo
Copy link
Copy Markdown
Collaborator

ekyooo commented Mar 15, 2026

Could you add an appropriate prefix to the commit message? (ex. test/python: xxx)

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Mar 16, 2026
This resolves USDT probe test failures on ARM64 platforms.
Without these changes, the .note.stapsdt section containing probe
information was missing entirely on ARM64, causing test failures when
attempting to find and attach to USDT probes in the BCC test suite.

Upstream-Status: Submitted [iovisor/bcc#5491]

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Mar 17, 2026
This resolves USDT probe test failures on ARM64 platforms.
Without these changes, the .note.stapsdt section containing probe
information was missing entirely on ARM64, causing test failures when
attempting to find and attach to USDT probes in the BCC test suite.

Upstream-Status: Submitted [iovisor/bcc#5491]

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Rename StaticTracepoint-ELFx86.h to StaticTracepoint-ELF.h so the header
name is no longer tied to a specific architecture, enabling future
support for additional architectures.

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Extend the static tracepoint (SDT) macros to work on ARM and AArch64
by:

- Defining FOLLY_SDT_NOP as "nop" (the same mnemonic works for both
  ARM and AArch64)
- Adding `defined(__aarch64__) || defined(__arm__)` to the preprocessor
  guard in StaticTracepoint.h

This resolves USDT probe test failures on ARM64 platforms.
Without these changes, the .note.stapsdt section containing probe
information was missing entirely on ARM64, causing test failures when
attempting to find and attach to USDT probes in the BCC test suite.

Fixes: iovisor#5354

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
@hsadinen
Copy link
Copy Markdown
Contributor Author

hsadinen commented Mar 17, 2026

@ekyooo, I have updated commit message with appropriate prefix.

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Mar 17, 2026
This resolves USDT probe test failures on ARM64 platforms.
Without these changes, the .note.stapsdt section containing probe
information was missing entirely on ARM64, causing test failures when
attempting to find and attach to USDT probes in the BCC test suite.

Upstream-Status: Submitted [iovisor/bcc#5491]

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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.

USDT Probe Test Failures on ARM64 Architecture

2 participants