This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate trace collection from trace decoding.
We are about to add our own trace decoder (as an alternative to libipt) to hwtracer. In order to do this we need the ability to have separate notions of trace collection and trace decoding. In other words, instead of having a `PerfPT backend`, we now have a `PerfTraceCollector` and a `LibIPTTraceDecoder`. (There was also something called a `Dummy` backend, which I saw no utility to, and have thus removed) This is a large change, that will be hard to review I'm afraid. In doing this work I've realised how crusty and unidiomatic some of the hwtracer code is. Regardless I've tried hard to resist the urge to uncrustify unrelated parts of code. I will fix some of this stuff in follow up PRs.
- Loading branch information
Showing
21 changed files
with
1,486 additions
and
1,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <linux/perf_event.h> | ||
|
||
int | ||
check(void) | ||
{ | ||
// The perf configuration struct version that first supported Intel PT. | ||
return PERF_ATTR_SIZE_VER5; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.