mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 10:14:44 +08:00
25 lines
336 B
C
25 lines
336 B
C
#ifndef EBPF_EXAMPLE_GOROUTINE_H
|
|
#define EBPF_EXAMPLE_GOROUTINE_H
|
|
|
|
enum goroutine_state {
|
|
IDLE,
|
|
RUNNABLE,
|
|
RUNNING,
|
|
SYSCALL,
|
|
WAITING,
|
|
MORIBUND_UNUSED,
|
|
DEAD,
|
|
ENQUEUE_UNUSED,
|
|
COPYSTACK,
|
|
PREEMPTED,
|
|
};
|
|
|
|
struct goroutine_execute_data {
|
|
enum goroutine_state state;
|
|
unsigned long goid;
|
|
int pid;
|
|
int tgid;
|
|
};
|
|
|
|
#endif
|