Michal Rostecki
70475f3b2a
Add raw_tracepoint program type
...
Signed-off-by: Michal Rostecki <vadorovsky@gmail.com>
2 years ago
Kenjiro Nakayama
8621ea7d5f
Add cgroup_sockopt template for BPF_PROG_TYPE_CGROUP_SOCKOPT
3 years ago
Kenjiro Nakayama
3bf8e87b3e
Add cgroup_sysctl template for BPF_PROG_TYPE_CGROUP_SYSCTL
...
Since https://github.com/aya-rs/aya/pull/256 supports `BPF_PROG_TYPE_CGROUP_SYSCTL`,
this patch adds cgroup_sysctl template.
3 years ago
Dave Tucker
807131b955
Merge pull request #33 from nak3/add-socket-filter
...
Add template for socket_filter program type
3 years ago
Kenjiro Nakayama
640d0dcef5
Use strict regex for additional args.
...
Current `[a-z_]+` regex allows upper case such as `NET_dev`, `netDev`
or even `NET_DEV` when one of `a-z` or `_` contains in the string. It
should be disallowed.
This patch fixes it.
3 years ago
Kenjiro Nakayama
11798df0ab
Fix sock_filter to socket_filter
3 years ago
Kenjiro Nakayama
8dcda393c4
Add template for socket_filter program type
...
This patch adds template for socket_filter.
e.g.
```sh
cargo generate --path ~/dev/aya-template \
--name my-test \
-d program_type=socket_filter
```
3 years ago
Michal Rostecki
e1fb8024a6
fentry/fexit: Add template for fentry/fexit programs
...
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
3 years ago
William Findlay
3f082e713e
tp_btf: add template for tp_btf programs
3 years ago
William Findlay
7ffb47cc6b
template: add a new template for LSM programs
3 years ago
Dave Tucker
1378d64d4f
bump cargo-generate minimum version
...
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago
Dave Tucker
d98d90be7a
Generate Skeleton Programs for all program types
...
User may specify a program_type by prompt or CLI flag.
We then generate skeleton code to the ebpf program for a noop program of
that type.
Requires cargo-generate@main
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
3 years ago