Skip to content

C source code view #4

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

Open
theihor opened this issue Mar 31, 2025 · 0 comments
Open

C source code view #4

theihor opened this issue Mar 31, 2025 · 0 comments
Assignees

Comments

@theihor
Copy link
Collaborator

theihor commented Mar 31, 2025

The log contains C source code associated with the printed instructions. It looks like this:

; int zero = 0; @ pyperf.h:230
*(u32 *)(r10 -352) = r1
*(u32 *)(r10 -8) = r2
r2 = r10
r2 += -8
; Event* event = bpf_map_lookup_elem(&eventmap, &zero); @ pyperf.h:231
r1 = 0xffff9e4145103800
r0 = call bpf_map_lookup_elem#1(r1, r2, r3, r4, r5)

The lines can be detected and collected when parsing, and the reconstructed code can be displayed.

The displayed code can also be highlighted depending on main log view (i.e. selected and dependent lines).

@theihor theihor added the enhancement New feature or request label Mar 31, 2025
@theihor theihor self-assigned this Mar 31, 2025
@theihor theihor removed the enhancement New feature or request label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant