-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libpfm integration]: Conditional compile of libpfm in KTF
libpfm is library to which helps enumerate and provide PMU counter encoding as well for underlying hardware. https://sourceforge.net/p/perfmon2/libpfm4/ci/master/tree/ Library assumes standard C runtime, thus there were modifications done to it in order to comply with KTF build and runtime (see tools/libpfm/libpfm_diff.patch). In order to generate the patch header and C files in libpfm had to be patched (almost 200-300 of them). So I wrote a python script (see tools/libpfm/patch_headers.py) to do that. libpfm is conditionally linked (based on CONFIG_LIBPFM) to KTF binary. So something like make CONFIG_LIBPFM=y boot.iso should do. This commit is aiming to integrate library into build, next steps would be further functional development. make clean CONFIG_LIBPFM=y cleans up libpfm artifacts conditionally. Docker image didn't have patch and there're relevant changes in Dockerfile for that. pfmlib library is mostly free standing library without any dependency to enumerate events supported by underlying hw (core/uncore) or sw (OS like linux). KTF is mostly interested into hw events and thus pfmlib had to be slightly modified to compile correctly with KTF. https://sourceforge.net/p/perfmon2/libpfm4/ci/master/tree This commit is picking 4.10.1 version. Signed-off-by: Deepak Gupta <[email protected]>
- Loading branch information
1 parent
0629e0b
commit 97cc2b0
Showing
6 changed files
with
2,712 additions
and
18 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
Binary file not shown.
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
Oops, something went wrong.