Skip to content

Commit af29541

Browse files
committed
try something to debug
1 parent c3e1b8b commit af29541

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test-bpftrace.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
is_a_syscall_tracing: true
158158
container:
159159
image: "manjusakalza/bpftime-base-image:${{matrix.container.image}}"
160-
options: --privileged -v /sys/kernel/debug/:/sys/kernel/debug:rw -v /sys/kernel/tracing:/sys/kernel/tracing:rw
160+
options: --privileged -v /sys/kernel/debug/:/sys/kernel/debug:rw -v /sys/kernel/tracing:/sys/kernel/tracing:rw -v /usr/src:/usr/src:ro -v /lib/modules/:/lib/modules:ro
161161
steps:
162162
- name: Download prebuilt runtime (with jit)
163163
if: ${{matrix.enable_jit}}
@@ -195,6 +195,9 @@ jobs:
195195
if: ${{ matrix.container.name=='ubuntu' }}
196196
shell: bash
197197
run: apt update && apt install -y bpftrace
198+
- name: Test bpftrace
199+
shell: bash
200+
run: bpftrace -e 'BEGIN { printf("hello world\n"); }'
198201
- name: Test CLI - attach by running (is_a_syscall_tracing)
199202
if: matrix.bpftrace_tests.is_a_syscall_tracing
200203
shell: bash
@@ -205,4 +208,3 @@ jobs:
205208
shell: bash
206209
run: |
207210
python3 $(pwd)/.github/script/run_example.py "bpftrace ${{ matrix.bpftrace_tests.command }}" "${{matrix.bpftrace_tests.victim}}" "${{matrix.bpftrace_tests.expected_output}}" "/app/.bpftime/bpftime -i /app/.bpftime" 0
208-

0 commit comments

Comments
 (0)