-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the code to remove duplications (#1089)
* collector: refator metric package to stats Signed-off-by: Marcelo Amaral <[email protected]> * collector: move prometheus collector to metrics package Signed-off-by: Marcelo Amaral <[email protected]> * model: calculate processes energy and aggregate per container or vm Signed-off-by: Marcelo Amaral <[email protected]> * libvirt: find vm id from cgroup path Signed-off-by: Marcelo Amaral <[email protected]> * sensors: rename power package to sensors Signed-off-by: Marcelo Amaral <[email protected]> * libbpf: rebuild Signed-off-by: Marcelo Amaral <[email protected]> * bcc: fix cgroup id Signed-off-by: Marcelo Amaral <[email protected]> * e2e: wait kepler start Signed-off-by: Marcelo Amaral <[email protected]> * code: rebase Signed-off-by: Marcelo Amaral <[email protected]> --------- Signed-off-by: Marcelo Amaral <[email protected]>
- Loading branch information
1 parent
158305a
commit 7c99198
Showing
133 changed files
with
3,606 additions
and
5,736 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,17 +27,26 @@ jobs: | |
env: | ||
GOPATH: /home/runner/go | ||
GOBIN: /home/runner/go/bin | ||
- name: install libbpf | ||
uses: sustainable-computing-io/[email protected] | ||
with: | ||
ebpfprovider: libbpf | ||
- name: Prepare environment | ||
run: | | ||
sudo apt-get install -y cpuid | ||
sudo apt-get install -y cpuid clang | ||
cd doc/ && sudo ./dev/prepare_dev_env.sh && cd - | ||
git config --global --add safe.directory /kepler | ||
- name: install libbpf | ||
uses: sustainable-computing-io/[email protected] | ||
with: | ||
ebpfprovider: libbpf | ||
- name: Run | ||
run: | | ||
sudo apt remove libbpf-dev | ||
mkdir temp-libbpf | ||
cd temp-libbpf | ||
git clone https://github.com/libbpf/libbpf | ||
cd libbpf/src | ||
sudo make install_headers | ||
sudo make install_uapi_headers | ||
sudo prefix=/usr BUILD_STATIC_ONLY=y make install | ||
cd ../../../ | ||
ATTACHER_TAG=libbpf make test-verbose | ||
go tool cover -func=coverage.out -o=coverage.out | ||
- name: Go Coverage Badge # Pass the `coverage.out` output to this action | ||
|
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
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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.