Commit 8050a395 authored by Peter Wu's avatar Peter Wu Committed by Alexei Starovoitov

bpf: fix 'struct pt_reg' typo in documentation

There is no 'struct pt_reg'.
Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
Reviewed-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 5cbd22c1
...@@ -1018,7 +1018,7 @@ union bpf_attr { ...@@ -1018,7 +1018,7 @@ union bpf_attr {
* The realm of the route for the packet associated to *skb*, or 0 * The realm of the route for the packet associated to *skb*, or 0
* if none was found. * if none was found.
* *
* int bpf_perf_event_output(struct pt_reg *ctx, struct bpf_map *map, u64 flags, void *data, u64 size) * int bpf_perf_event_output(struct pt_regs *ctx, struct bpf_map *map, u64 flags, void *data, u64 size)
* Description * Description
* Write raw *data* blob into a special BPF perf event held by * Write raw *data* blob into a special BPF perf event held by
* *map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf * *map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf
...@@ -1080,7 +1080,7 @@ union bpf_attr { ...@@ -1080,7 +1080,7 @@ union bpf_attr {
* Return * Return
* 0 on success, or a negative error in case of failure. * 0 on success, or a negative error in case of failure.
* *
* int bpf_get_stackid(struct pt_reg *ctx, struct bpf_map *map, u64 flags) * int bpf_get_stackid(struct pt_regs *ctx, struct bpf_map *map, u64 flags)
* Description * Description
* Walk a user or a kernel stack and return its id. To achieve * Walk a user or a kernel stack and return its id. To achieve
* this, the helper needs *ctx*, which is a pointer to the context * this, the helper needs *ctx*, which is a pointer to the context
...@@ -1729,7 +1729,7 @@ union bpf_attr { ...@@ -1729,7 +1729,7 @@ union bpf_attr {
* Return * Return
* 0 on success, or a negative error in case of failure. * 0 on success, or a negative error in case of failure.
* *
* int bpf_override_return(struct pt_reg *regs, u64 rc) * int bpf_override_return(struct pt_regs *regs, u64 rc)
* Description * Description
* Used for error injection, this helper uses kprobes to override * Used for error injection, this helper uses kprobes to override
* the return value of the probed function, and to set it to *rc*. * the return value of the probed function, and to set it to *rc*.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment