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

Method update_op_list

user/module/syscall.go:362–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360}
361
362func (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
380func (this *MSyscall) updateFilter() (err error) {
381 this.update_base_config()

Callers 1

updateFilterMethod · 0.95

Calls 2

FindMapMethod · 0.95
GetALLOpListFunction · 0.92

Tested by

no test coverage detected