()
| 339 | } |
| 340 | |
| 341 | func (this *MStack) update_op_list() { |
| 342 | map_name := "op_list" |
| 343 | bpf_map, err := this.FindMap(map_name) |
| 344 | if err != nil { |
| 345 | panic(fmt.Sprintf("find [%s] failed, err:%v", map_name, err)) |
| 346 | } |
| 347 | for op_key, op_config := range argtype.GetALLOpList() { |
| 348 | err := bpf_map.Update(unsafe.Pointer(&op_key), unsafe.Pointer(&op_config), ebpf.UpdateAny) |
| 349 | if err != nil { |
| 350 | panic(fmt.Sprintf("update [%s] failed, err:%v", map_name, err)) |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | if this.mconf.Debug { |
| 355 | this.logger.Printf("update %s success", map_name) |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | func (this *MStack) update_stack_config() { |
| 360 | if !this.mconf.StackUprobeConf.IsEnable() { |
no test coverage detected