Browse Source

updaye GIF

pull/3/head
yunwei37 2 years ago
parent
commit
5e54b5d5e2
2 changed files with 14 additions and 3 deletions
  1. +14
    -3
      README.md
  2. BIN
      doc/result.gif

+ 14
- 3
README.md View File

@@ -1,12 +1,17 @@
# GPTtrace 🤖

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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.

![result](doc/result.png)
example: tracing with Count page faults by process

![result](doc/result.gif)

### 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 🔧


BIN
doc/result.gif View File

Before After
Width: 600  |  Height: 338  |  Size: 311 kB

Loading…
Cancel
Save