-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #215 from grcevski/more_net_debug
Add debugging info for net TLS
- Loading branch information
Showing
10 changed files
with
181 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Development version of the beyla Dockerfile that compiles for coverage | ||
# and allows retrieving coverage files. | ||
# The production-ready minimal image is in the project root's dockerfile. | ||
FROM golang:1.20 as builder | ||
|
||
ARG TARGETARCH | ||
|
||
ENV GOARCH=$TARGETARCH | ||
|
||
WORKDIR / | ||
|
||
COPY test/integration/components/beyla/beyla_wrapper.sh /beyla_wrapper.sh | ||
|
||
WORKDIR /src | ||
|
||
# Copy the go manifests and source | ||
COPY .git/ .git/ | ||
COPY bpf/ bpf/ | ||
COPY cmd/ cmd/ | ||
COPY pkg/ pkg/ | ||
COPY vendor/ vendor/ | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
COPY Makefile Makefile | ||
|
||
# Build | ||
RUN make compile-for-coverage | ||
|
||
FROM ubuntu:latest | ||
|
||
# Copy the native executable into the containers | ||
COPY --from=builder /src/bin/beyla /beyla | ||
COPY --from=builder /beyla_wrapper.sh /beyla_wrapper.sh | ||
|
||
WORKDIR / | ||
USER 0:0 | ||
|
||
CMD [ "/beyla_wrapper.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Mount debugfs, we should be running privileged, so should be doable | ||
mount -t debugfs nodev /sys/kernel/debug | ||
|
||
# Start the trace pipe reader | ||
cat /sys/kernel/debug/tracing/trace_pipe & | ||
|
||
# Start the instrumenter | ||
./beyla "$@" & | ||
|
||
# Wait for any process to exit | ||
wait -n | ||
|
||
# Exit with status of process that exited first | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters