aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux/bpf
AgeCommit message (Collapse)Author
2024-11-18linux/bpf: add alignment for helper functions to make compiler happyTw
Signed-off-by: Tw <tw19881113@gmail.com>
2024-08-23std.os.linux: Fix bunch of compilation errors (#21138)Michał Drozd
* Correct layout of IntInfo according to https://www.kernel.org/doc/html/latest/bpf/btf.html#btf-kind-int * Fix VFS errors * Fix std.os.linux.sendmmsg * Fix std.os.linux.sigismember. Add tests * Fix futex2 functions
2023-11-19linux/bpf: update helper definitionsTw
Signed-off-by: Tw <tw19881113@gmail.com>
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-06-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-03bpf: correct return type of ringbuf_output helperTw
Signed-off-by: Tw <weii.tan>
2023-04-30std: fix a bunch of typosLinus Groh
The majority of these are in comments, some in doc comments which might affect the generated documentation, and a few in parameter names - nothing that should be breaking, however.
2023-03-28bpf: add missing *const for helper functionsTw
Signed-off-by: Tw <tw19881113@gmail.com>
2022-11-09Fixes to linux/bpf/btf.zigbfredl
- the meaning of packed structs changed in zig 0.10. adjust accordingly. Use "extern struct" for the cases that directly map to C structs. - Add new type info kinds, like enum64 and DeclTag - change the Type enum to use the canonical names from libbpf. This is more predictable when comparing with external BPF documentation (than invented synonyms that need to be guessed)
2021-12-19stage1, stage2: rename c_void to anyopaque (#10316)Isaac Freund
zig fmt now replaces c_void with anyopaque to make updating code easy.
2021-10-04migrate from `std.Target.current` to `@import("builtin").target`Andrew Kelley
closes #9388 closes #9321
2021-09-01std, compiler-rt: remove test names where applicableAndrew Kelley
Tests with no names are executed when using `zig test` regardless of the `--test-filter` used. Non-named tests should be used when simply importing unit tests from another file. This allows `zig test` to find all the appropriate tests, even when using `--test-filter`.
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-06-06std: Fix some BPF fn definitionsLemonBoy
Cros-checked with bpf.h of kernel 5.12.9.
2021-05-24housekeeping: builtin.arch → builtin.cpu.archMichael Dusan
2021-05-08std: update usage of std.testingVeikka Tuominen
2021-04-24fix import pathMatt Knight
2020-12-31Year++Frank Denis
2020-10-06Update zig files for opaque type syntaxTadeo Kondrak
2020-09-13changed to opaqueMatt Knight
2020-09-13removed all those kern aliasesMatt Knight
2020-09-13got booleans wrongMatt Knight
2020-09-12added helper definitionsMatt Knight
2020-09-07added license commentsMatt Knight
2020-09-07changed enums to lower caseMatt Knight
2020-09-06fixed missing 'packed' keywordMatt Knight
2020-09-06added btfMatt Knight