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

Method update_sysenter_point_args

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

Source from the content-addressed store, hash-verified

320}
321
322func (this *MSyscall) update_sysenter_point_args() {
323 map_name := "sysenter_point_args"
324 bpf_map, err := this.FindMap(map_name)
325 if err != nil {
326 panic(fmt.Sprintf("find [%s] failed, err:%v", map_name, err))
327 }
328 for _, syscall_point := range this.mconf.SysCallConf.PointArgs {
329 point_config := syscall_point.GetEnterConfig()
330 // syscall 已经通过了测试 暂时不需要
331 // point_config.MaxOpCount = this.mconf.MaxOp
332 err := bpf_map.Update(unsafe.Pointer(&syscall_point.Nr), unsafe.Pointer(&point_config), ebpf.UpdateAny)
333 if err != nil {
334 panic(fmt.Sprintf("update [%s] failed, err:%v", map_name, err))
335 }
336 }
337 if this.mconf.Debug {
338 this.logger.Printf("update %s success", map_name)
339 }
340}
341
342func (this *MSyscall) update_sysexit_point_args() {
343 map_name := "sysexit_point_args"

Callers 1

updateFilterMethod · 0.95

Calls 2

FindMapMethod · 0.95
GetEnterConfigMethod · 0.80

Tested by

no test coverage detected