Skip to content

Commit

Permalink
Fix bug related to early cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grcevski committed Aug 16, 2024
1 parent 0cdab24 commit 6e8358b
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions bpf/http_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,7 @@ static __always_inline int return_recvmsg(void *ctx, u64 id, int copied_len) {

bpf_dbg_printk("=== return recvmsg id=%d args=%llx copied_len %d ===", id, args, copied_len);

if (!args) {
goto done;
}

if (copied_len <= 0) {
bpf_map_delete_elem(&active_recv_args, &id);
if (!args || (copied_len <= 0)) {
goto done;
}

Expand Down
Binary file modified pkg/internal/ebpf/httpfltr/bpf_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_debug_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_debug_x86_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_tp_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_tp_debug_arm64_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_tp_debug_x86_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_tp_x86_bpfel.o
Binary file not shown.
Binary file modified pkg/internal/ebpf/httpfltr/bpf_x86_bpfel.o
Binary file not shown.
1 change: 1 addition & 0 deletions test/oats/kafka/docker-compose-beyla-java-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down
1 change: 1 addition & 0 deletions test/oats/kafka/docker-compose-beyla-python-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down
1 change: 1 addition & 0 deletions test/oats/redis/docker-compose-beyla-go-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down
1 change: 1 addition & 0 deletions test/oats/redis/docker-compose-beyla-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down
1 change: 1 addition & 0 deletions test/oats/sql/docker-compose-beyla-gosqlclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down
1 change: 1 addition & 0 deletions test/oats/sql/docker-compose-beyla-sql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ services:
BEYLA_METRICS_INTERVAL: "10ms"
BEYLA_BPF_BATCH_TIMEOUT: "10ms"
BEYLA_LOG_LEVEL: "DEBUG"
BEYLA_BPF_DEBUG: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://collector:4318"
depends_on:
testserver:
Expand Down

0 comments on commit 6e8358b

Please sign in to comment.