| 50 | } |
| 51 | |
| 52 | type Module struct { |
| 53 | opts *ebpf.CollectionOptions |
| 54 | reader []IClose |
| 55 | ctx context.Context |
| 56 | logger *log.Logger |
| 57 | child IModule |
| 58 | // probe的名字 |
| 59 | name string |
| 60 | |
| 61 | // module的类型,uprobe,kprobe等 |
| 62 | mType string |
| 63 | |
| 64 | mconf *config.ModuleConfig |
| 65 | |
| 66 | processor *event_processor.EventProcessor |
| 67 | |
| 68 | TotalLost uint64 |
| 69 | } |
| 70 | |
| 71 | // Init 对象初始化 |
| 72 | func (this *Module) Init(ctx context.Context, logger *log.Logger, conf config.IConfig) { |
nothing calls this directly
no outgoing calls
no test coverage detected