()
| 320 | } |
| 321 | |
| 322 | func (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 | |
| 342 | func (this *MSyscall) update_sysexit_point_args() { |
| 343 | map_name := "sysexit_point_args" |
no test coverage detected