Skip to content

Commit

Permalink
Add commands for 'libbpf' disabled option in docs/bpftime (#31)
Browse files Browse the repository at this point in the history
* Remove setup from .gitignore

* Remove eunomia-bpf from .gitignore

* Add libbpf option to the available options

* Undo changes in .gitignore
  • Loading branch information
hp77-creator authored Jun 30, 2024
1 parent e54540e commit 687efef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ GPTtrace
docs/setup
docs/tutorials
.cache
/bpftime
/bpftime
9 changes: 9 additions & 0 deletions docs/bpftime/documents/build-and-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ cmake -DBPFTIME_LLVM_JIT=NO -DENABLE_EBPF_VERIFIER=YES -DCMAKE_BUILD_TYPE=Releas
cmake --build build --config Release --target install
```

### Compile with libbpf disabled

This flag can be used to compile `bpftime` on macOS. It will disable all the libbpf related libraries and features that are used in bpftime.

```sh
cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DBPFTIME_BUILD_WITH_LIBBPF=OFF -DBPFTIME_BUILD_KERNEL_BPF=OFF
cmake --build build --config RelWithDebInfo --target install -j$(JOBS)
```

### Testing targets

We have some targets for unit testing, they are:
Expand Down

0 comments on commit 687efef

Please sign in to comment.