|
|
|
@@ -1,12 +1,17 @@ |
|
|
|
# GPTtrace 🤖 |
|
|
|
|
|
|
|
[](https://opensource.org/licenses/MIT) |
|
|
|
|
|
|
|
|
|
|
|
Generate eBPF programs and tracing with ChatGPT and natural language |
|
|
|
|
|
|
|
## Key Features 💡 |
|
|
|
|
|
|
|
### Interact and Tracing your Linux with natural language, it can tell how to write eBPF programs in `BCC`, `libbpf` styles. |
|
|
|
|
|
|
|
 |
|
|
|
example: tracing with Count page faults by process |
|
|
|
|
|
|
|
 |
|
|
|
|
|
|
|
### Generate eBPF programs with natural language |
|
|
|
|
|
|
|
@@ -43,12 +48,18 @@ optional arguments: |
|
|
|
|
|
|
|
### Use prompts to teach ChatGPT to write eBPF programs |
|
|
|
|
|
|
|
TODO |
|
|
|
```sh |
|
|
|
./GPTtrace.py -t |
|
|
|
``` |
|
|
|
|
|
|
|
This will use the material in the `prompts` directory to teach ChatGPT to write eBPF programs in bpftrace, libbpf, and BCC styles. You can also do that manually by sending the prompts to ChatGPT in the Website. |
|
|
|
|
|
|
|
### start your tracing! 🚀 |
|
|
|
|
|
|
|
For example: |
|
|
|
|
|
|
|
```sh |
|
|
|
./GPTtrace -e "Count page faults by process" |
|
|
|
./GPTtrace.py -e "Count page faults by process" |
|
|
|
``` |
|
|
|
|
|
|
|
## Installation 🔧 |
|
|
|
|