Skip to contentSkip to conversation

trace-cruncher: Small fixes

PATCH In review Tzvetomir Stoyanov (VMware) 2 participants 5 messages May 3, 2022

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 0e0e293..3ce3b54 100644
@@ -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
#2 lore raw

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
index a9520e7..0d72bbf 100644
@@ -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
Reviewed-by on v1 2/3
#3 lore raw

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.

---
  .github/workflows/main.yml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/main.yml +0 -0
index a9520e7..0d72bbf 100644

.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 -0
          sudo apt-get install libpython3-dev cython3 python3-numpy -y
          sudo apt install python3-pip
          sudo pip3 install --system pkgconfig GitPython
#4 lore raw

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
index 9fb86e5..2d47632 100644
@@ -1,5 +1,6 @@
 *.so
 *.a
+*.o
 .*.d
 *~
 *.pyc
Signature · 1 line
2.35.1