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

perf: Build with libtraceevent support #350

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Conversation

ermo
Copy link
Member

@ermo ermo commented Aug 22, 2024

This enables perf to capture kernel-space tracing events, which is e.g. useful for benchmarking moss' kernel vfs performance when writing to disk.

Test Plan

ermo@snekhtpc:~/repos/serpent-os/recipes/p/perf [feat/perf-libtraceevent* +4 ~0 -0 !]
$ sudo perf record -e 'ext4:*',cycles:uk -o /tmp/moss-sync-yu-perf.dat moss sync -yu
Refreshed local
Refreshed volatile
No packages to sync
[ perf record: Woken up 65 times to write data ]
[ perf record: Captured and wrote 3.061 MB /tmp/moss-sync-yu-perf.dat (35834 samples) ]

Dependency of libtracevent.

Signed-off-by: Rune Morling <[email protected]>
New dependency of perf. Note that docs are currently not built due to
us not having a sane Asciidoc story yet.

Signed-off-by: Rune Morling <[email protected]>
@ermo ermo force-pushed the feat/perf-libtraceevent branch 2 times, most recently from 8414afa to 947ea17 Compare August 23, 2024 11:08
@ermo ermo marked this pull request as ready for review August 23, 2024 11:09
@ermo ermo requested a review from a team as a code owner August 23, 2024 11:09
This enables `perf` to capture kernel-space tracing events, which is e.g.
useful for benchmarking moss' kernel vfs performance when writing to disk.

**Test Plan**

```
ermo@snekhtpc:~/repos/serpent-os/recipes/p/perf [feat/perf-libtraceevent* +4 ~0 -0 !]
$ sudo perf record -e 'ext4:*',cycles:uk -o /tmp/moss-sync-yu-perf.dat moss sync -yu
Refreshed local
Refreshed volatile
No packages to sync
[ perf record: Woken up 65 times to write data ]
[ perf record: Captured and wrote 3.061 MB /tmp/moss-sync-yu-perf.dat (35834 samples) ]
```

Signed-off-by: Rune Morling <[email protected]>
@ikeycode ikeycode merged commit 3a5aaf3 into main Oct 21, 2024
1 check passed
@ikeycode ikeycode deleted the feat/perf-libtraceevent branch October 21, 2024 11:47
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.

2 participants