Skip to content

Commit

Permalink
Merge pull request #84 from dmitris/patch-1
Browse files Browse the repository at this point in the history
correct the name of the compiled executable
  • Loading branch information
vadorovsky committed Jan 23, 2023
2 parents 98948ba + 0062147 commit bab873c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/kprobetcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,22 @@ and prints the source and destination IP addreses from the sockets for the TCP c
## Build eBPF

```bash
cargo xtask build-ebpf --release
cargo xtask build-ebpf
```

To perform a debug build you can leave out the `--release` flag.
In this case, below you should also leave out the `--release` flag.
To perform a release build you can use the `--release` flag.
You may also change the target architecture with the `--target` flag

## Build Userspace

```bash
cargo build --release
cargo build
```

## Run

```bash
RUST_LOG=info sudo target/release/kprob
RUST_LOG=info cargo xtask run
```
Execute some TCP connection in a different terminal, such as `curl http://example.com`. The expected output (the source IP address will likely be different):
```
Expand Down

0 comments on commit bab873c

Please sign in to comment.