Skip to content

Commit

Permalink
u[date co
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwei37 committed Sep 2, 2024
1 parent db051c5 commit a02e948
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 173 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test-eunomia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@ jobs:
run: |
./ecc src/25-signal/signal.bpf.c src/25-signal/signal.h
sudo timeout -s 2 3 ./ecli run src/25-signal/package.json || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 31 goroutine
run: |
./ecc src/31-goroutine/goroutine.bpf.c src/31-signal/goroutine.h
# todo
4 changes: 4 additions & 0 deletions .github/workflows/test-libbpf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
run: |
make -C src/30-sslsniff
sudo timeout -s 2 3 src/30-sslsniff/sslsniff || if [ $? = 124 ]; then exit 0; else exit $?; fi
- name: test 33 funclatency
run: |
make -C src/33-funclatency
- name: test 35-user-ringbuf
run: |
make -C src/35-user-ringbuf
Expand Down
2 changes: 1 addition & 1 deletion src/31-goroutine/goroutine.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct {
SEC("uprobe/./go-server-http/main:runtime.casgstatus")
int uprobe_runtime_casgstatus(struct pt_regs *ctx) {
int newval = ctx->cx;
void *gp = ctx->ax;
void *gp = (void*)ctx->ax;
struct goroutine_execute_data *data;
u64 goid;
if (bpf_probe_read_user(&goid, sizeof(goid), gp + GOID_OFFSET) == 0) {
Expand Down
172 changes: 0 additions & 172 deletions src/31-goroutine/goroutine.c

This file was deleted.

0 comments on commit a02e948

Please sign in to comment.