()
| 360 | } |
| 361 | |
| 362 | func (this *MSyscall) update_op_list() { |
| 363 | map_name := "op_list" |
| 364 | bpf_map, err := this.FindMap(map_name) |
| 365 | if err != nil { |
| 366 | panic(fmt.Sprintf("find [%s] failed, err:%v", map_name, err)) |
| 367 | } |
| 368 | for op_key, op_config := range argtype.GetALLOpList() { |
| 369 | err := bpf_map.Update(unsafe.Pointer(&op_key), unsafe.Pointer(&op_config), ebpf.UpdateAny) |
| 370 | if err != nil { |
| 371 | panic(fmt.Sprintf("update [%s] failed, err:%v", map_name, err)) |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | if this.mconf.Debug { |
| 376 | this.logger.Printf("update %s success", map_name) |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | func (this *MSyscall) updateFilter() (err error) { |
| 381 | this.update_base_config() |
no test coverage detected