当前位置: 首页 > 工具软件 > Tracee > 使用案例 >

tracee event机制

郑鸿朗
2023-12-01

举个例子

  Read: {
            ID32Bit: sys32read,
            Name:    "read",
            Syscall: true,
            Sets:    []string{"syscalls", "fs", "fs_read_write"},
            Params: []trace.ArgMeta{
                {Type: "int", Name: "fd"},
                {Type: "void*", Name: "buf"},
                {Type: "size_t", Name: "count"},
            },
        }

Sets是个集合,如命令中设置set="fs",则加载所有sets中包含fs的事件

 类似资料: