cheneytianx

Results 4 comments of cheneytianx

Try this, to see if it works on your case. ```c SEC("kprobe/__x64_sys_kill") int kprobe_kill(struct pt_regs *kprobe_ctx) { int pid, sig; struct pt_regs *ctx = (struct pt_regs *)PT_REGS_PARM1(kprobe_ctx); bpf_probe_read(&pid, sizeof(pid), &PT_REGS_PARM1(ctx));...

这大概是一个数据包的结构信息。 ``` skb->data -->[ ethhdr | iphdr | tcphdr | payload ] data_end ``` 首先解析各种协议包头,计算 payload 的 offset 和 长度 data_len: ```c u16 offset = sizeof(*eth) + sizeof(*iph) + (tcph->doff...

How to config `nvidia-container-runtime` to let it use `runsc` on the low lever? What I've configured: ``` shell $ cat /usr/local/bin/runscgpu #!/bin/bash exec /usr/local/bin/runsc --nvproxy "$@" ``` In `/etc/nvidia-container-runtime/config.toml` ```toml...

> How to config `nvidia-container-runtime` to let it use `runsc` on the low lever? > > What I've configured: > > $ cat /usr/local/bin/runscgpu > > #!/bin/bash > exec /usr/local/bin/runsc...