trace-cruncher: Small fixes
cover trace-cruncher: Small fixes
Fixed problems, found by github CI automatic workflow.
Tzvetomir Stoyanov (VMware) (3):
trace-cruncher: Add define for bool type
trace-cruncher: Update github workflows
trace-cruncher: Add object files to gitignore
.github/workflows/main.yml | 2 +- .gitignore | 1 + src/trace-obj-debug.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.35.1
PATCH 1/3 trace-cruncher: Add define for bool type
The logic for resolving function name to address uses bool type, which is defined in stdbool.h header file. Add explicitly include to this file.
--- src/trace-obj-debug.c | 1 + 1 file changed, 1 insertion(+)
src/trace-obj-debug.c +1 -0
@@ -11,6 +11,7 @@#include <stdlib.h> #include <stdio.h> +#include <stdbool.h> #include <string.h> #include <limits.h> #include <errno.h>
Signature · 1 line
2.35.1
PATCH 2/3 trace-cruncher: Update github workflows
In reply to Tzvetomir Stoyanov (VMware)Recent commits add functionality for function name to address resolving, using bfd library. This breaks the github action, used for trace-cruncher CI, as it does not have bfd development files. Updated the workflow with bfd development package.
--- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/main.yml +1 -1
@@ -17,7 +17,7 @@ jobs: shell: bash run: | sudo apt-get update - sudo apt-get install build-essential git cmake libjson-c-dev -y + sudo apt-get install build-essential git cmake libjson-c-dev binutils-dev -y sudo apt-get install libpython3-dev cython3 python3-numpy -y sudo apt install python3-pip sudo pip3 install --system pkgconfig GitPython
Signature · 1 line
2.35.1
Re: [PATCH 2/3] trace-cruncher: Update github workflows
Quoted 15 lines · Tzvetomir Stoyanov (VMware)
Recent commits add functionality for function name to address resolving, using bfd library. This breaks the github action, used for trace-cruncher CI, as it does not have bfd development files. Updated the workflow with bfd development package.
Signed-off-by Tzvetomir Stoyanov (VMware) <[email protected]>--- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).github/workflows/main.yml +0
-0
.github/workflows/main.yml jobs: · line 20
Quoted 5 lines
.github/workflows/main.yml +1
-1@@ -17,7 +17,7 @@ jobs: shell: bash run: | sudo apt-get update - sudo apt-get install build-essential git cmake libjson-c-dev -y + sudo apt-get install build-essential git cmake libjson-c-dev binutils-dev -y
This must be added to the install instructions in README as well. Probably in a separate patch.
Everything else looks good to me.
Quoted 3 lines
.github/workflows/main.yml +0
-0sudo apt-get install libpython3-dev cython3 python3-numpy -y sudo apt install python3-pip sudo pip3 install --system pkgconfig GitPython
PATCH 3/3 trace-cruncher: Add object files to gitignore
In reply to Tzvetomir Stoyanov (VMware)Object files, produced by the compilation should not be committed. Updated the .gitignore file with these files.
--- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -1,5 +1,6 @@ *.so *.a +*.o .*.d *~ *.pyc
Signature · 1 line
2.35.1