Tw
Tw
Nowadays, we have to duplicate the original BPF program as follows: ``` const obj_bytes = @embedFile("@perf_event"); const bytes = try allocator.dupe(u8, obj_bytes); defer allocator.free(bytes); ``` Once https://github.com/ziglang/zig/issues/4680 is resolved, this...
Closes #19656 Closes #19594
``` > zig build trace -Dkprobe=ZSTD_CCtxParams_init_advanced:arg0,arg1,ret src/bpf/args.zig:171:12: error: expected type 'vmlinux.struct_19428', found 'c_ulong' ``` libbpf did already support this: https://lore.kernel.org/bpf/[email protected]/
``` zig build trace -Dkprobe=kill_pid_usb_asyncio:arg0,arg1,arg2,arg3,arg4,ret ```
### Zig Version zig-linux-x86_64-0.15.0-dev.386+2e35fdd03 ### Steps to Reproduce and Observed Behavior Actually, this issue was found during writing unikernel with zig. In unikernel, all syscalls are replaced by function calls...
### What happened, and what did you expect to happen? ``` ~> put $i Compilation error: variable $i not found [tty 162]:1:5-6: put $i ~> for i [1 2] {...
Use environment variable PKG_CONFIG_PATH to add searching paths for pkg-config. To reproduce, just add `:pkg-config-libs` in `project.janet`.
This is especially useful when line buffer could be prefilled by an external program and then be edited later. BTW, this also paves the way for testing of getline, although...