Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Add ARM support #82

Merged
merged 56 commits into from
May 2, 2023
Merged

[feat] Add ARM support #82

merged 56 commits into from
May 2, 2023

Conversation

MikeGoldsmith
Copy link
Member

@MikeGoldsmith MikeGoldsmith commented Apr 19, 2023

Problem Statement

Adds support to build and run the agent and supporting tools on arm based architectures.

Includes the following changes:

  • Adds support to build and run tests on arm64 based architectures
  • Refactor the HTTP based probes to all consistently use the ctx offset to retrieve the go routine and store between serveHTTP and serveHTTP_returns probe calls
  • Removes additional net/http probe function and fixes bug where an extra empty span is recorded and update e2e test json to remove empty spans

Based the work contributed to keyval's original repo in the following PR:

There is shared work across the following PRs that has been combined into this PR:

The following PRs will need rebasing after this merges:

Co-authored-by: JamieDanielson jamieedanielson@gmail.com
Co-authored-by: Eden Federman eden@keyval.dev

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@MikeGoldsmith MikeGoldsmith marked this pull request as ready for review April 28, 2023 18:21
@MikeGoldsmith MikeGoldsmith requested a review from a team April 28, 2023 18:21
pkg/process/analyze.go Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
include/common.h Outdated Show resolved Hide resolved
pkg/process/ret_linux_amd64.go Show resolved Hide resolved
Copy link
Contributor

@edeNFed edeNFed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Depending on goroutine is a known bug. I started working on a fix in #118 so I don't think it is a blocker for this change.

Btw, I wonder if we can add e2e tests for ARM as well. We will probably need to request some ARM based GitHub runners for that (probably not part of this PR).

@MikeGoldsmith MikeGoldsmith changed the title feat: Add ARM support [feat] Add ARM support Apr 29, 2023
…trumentation into mike/arm

# Conflicts:
#	pkg/instrumentors/bpf/net/http/server/probe.go
@MikeGoldsmith
Copy link
Member Author

Thanks for reviews @MrAlias & @edeNFed. I’ll work on feedback 👍🏻

@MikeGoldsmith
Copy link
Member Author

@MrAlias I've addressed all feedback, this is ready for another review 👍🏻

@MikeGoldsmith MikeGoldsmith requested a review from MrAlias May 2, 2023 12:30
CHANGELOG.md Outdated Show resolved Hide resolved
MikeGoldsmith and others added 2 commits May 2, 2023 15:35
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.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.

Support ARM architectures
6 participants