MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / update_op_list

Method update_op_list

user/module/stack.go:341–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339}
340
341func (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
359func (this *MStack) update_stack_config() {
360 if !this.mconf.StackUprobeConf.IsEnable() {

Callers 1

updateFilterMethod · 0.95

Calls 2

FindMapMethod · 0.95
GetALLOpListFunction · 0.92

Tested by

no test coverage detected