There is no 'struct pt_reg'.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -1018,7 +1018,7 @@ union bpf_attr { · 1017 unmodified lines | |||
| 1018 | * The realm of the route for the packet associated to *skb*, or 0 | 1018 | * The realm of the route for the packet associated to *skb*, or 0 |
| 1019 | * if none was found. | 1019 | * if none was found. |
| 1020 | * | 1020 | * |
| 1021 | * int bpf_perf_event_output(struct pt_reg *ctx, struct bpf_map *map, u64 flags, void *data, u64 size) | 1021 | * int bpf_perf_event_output(struct pt_regs *ctx, struct bpf_map *map, u64 flags, void *data, u64 size) |
| 1022 | * Description | 1022 | * Description |
| 1023 | * Write raw *data* blob into a special BPF perf event held by | 1023 | * Write raw *data* blob into a special BPF perf event held by |
| 1024 | * *map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf | 1024 | * *map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf |
| @@ -1080,7 +1080,7 @@ union bpf_attr { · 55 unmodified lines | |||
| 1080 | * Return | 1080 | * Return |
| 1081 | * 0 on success, or a negative error in case of failure. | 1081 | * 0 on success, or a negative error in case of failure. |
| 1082 | * | 1082 | * |
| 1083 | * int bpf_get_stackid(struct pt_reg *ctx, struct bpf_map *map, u64 flags) | 1083 | * int bpf_get_stackid(struct pt_regs *ctx, struct bpf_map *map, u64 flags) |
| 1084 | * Description | 1084 | * Description |
| 1085 | * Walk a user or a kernel stack and return its id. To achieve | 1085 | * Walk a user or a kernel stack and return its id. To achieve |
| 1086 | * this, the helper needs *ctx*, which is a pointer to the context | 1086 | * this, the helper needs *ctx*, which is a pointer to the context |
| @@ -1729,7 +1729,7 @@ union bpf_attr { · 642 unmodified lines | |||
| 1729 | * Return | 1729 | * Return |
| 1730 | * 0 on success, or a negative error in case of failure. | 1730 | * 0 on success, or a negative error in case of failure. |
| 1731 | * | 1731 | * |
| 1732 | * int bpf_override_return(struct pt_reg *regs, u64 rc) | 1732 | * int bpf_override_return(struct pt_regs *regs, u64 rc) |
| 1733 | * Description | 1733 | * Description |
| 1734 | * Used for error injection, this helper uses kprobes to override | 1734 | * Used for error injection, this helper uses kprobes to override |
| 1735 | * the return value of the probed function, and to set it to *rc*. | 1735 | * the return value of the probed function, and to set it to *rc*. |