History

bpf: fix 'struct pt_reg' typo in documentation

There is no 'struct pt_reg'.

Peter Wu committed 7 years ago

Commit 8050a391 parent 5cbd22c1 file · +3 −3Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/bpf.h+3−3
@@ -1018,7 +1018,7 @@ union bpf_attr { · 1017 unmodified lines
10181018 * The realm of the route for the packet associated to *skb*, or 0
10191019 * if none was found.
10201020 *
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)
10221022 * Description
10231023 * Write raw *data* blob into a special BPF perf event held by
10241024 * *map* of type **BPF_MAP_TYPE_PERF_EVENT_ARRAY**. This perf
@@ -1080,7 +1080,7 @@ union bpf_attr { · 55 unmodified lines
10801080 * Return
10811081 * 0 on success, or a negative error in case of failure.
10821082 *
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)
10841084 * Description
10851085 * Walk a user or a kernel stack and return its id. To achieve
10861086 * this, the helper needs *ctx*, which is a pointer to the context
@@ -1729,7 +1729,7 @@ union bpf_attr { · 642 unmodified lines
17291729 * Return
17301730 * 0 on success, or a negative error in case of failure.
17311731 *
1732− * int bpf_override_return(struct pt_reg *regs, u64 rc)
1732+ * int bpf_override_return(struct pt_regs *regs, u64 rc)
17331733 * Description
17341734 * Used for error injection, this helper uses kprobes to override
17351735 * the return value of the probed function, and to set it to *rc*.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t