@@ -152,7 +152,7 @@ struct bpf_object_open_opts {
152152 * log_buf and log_level settings.
153153 *
154154 * If specified, this log buffer will be passed for:
155- * - each BPF progral load (BPF_PROG_LOAD) attempt, unless overriden
155+ * - each BPF progral load (BPF_PROG_LOAD) attempt, unless overridden
156156 * with bpf_program__set_log() on per-program level, to get
157157 * BPF verifier log output.
158158 * - during BPF object's BTF load into kernel (BPF_BTF_LOAD) to get
@@ -455,7 +455,7 @@ LIBBPF_API int bpf_link__destroy(struct bpf_link *link);
455455/**
456456 * @brief **bpf_program__attach()** is a generic function for attaching
457457 * a BPF program based on auto-detection of program type, attach type,
458- * and extra paremeters , where applicable.
458+ * and extra parameters , where applicable.
459459 *
460460 * @param prog BPF program to attach
461461 * @return Reference to the newly created BPF link; or NULL is returned on error,
@@ -679,7 +679,7 @@ struct bpf_uprobe_opts {
679679/**
680680 * @brief **bpf_program__attach_uprobe()** attaches a BPF program
681681 * to the userspace function which is found by binary path and
682- * offset. You can optionally specify a particular proccess to attach
682+ * offset. You can optionally specify a particular process to attach
683683 * to. You can also optionally attach the program to the function
684684 * exit instead of entry.
685685 *
@@ -1593,11 +1593,11 @@ LIBBPF_API int perf_buffer__buffer_fd(const struct perf_buffer *pb, size_t buf_i
15931593 * memory region of the ring buffer.
15941594 * This ring buffer can be used to implement a custom events consumer.
15951595 * The ring buffer starts with the *struct perf_event_mmap_page*, which
1596- * holds the ring buffer managment fields, when accessing the header
1596+ * holds the ring buffer management fields, when accessing the header
15971597 * structure it's important to be SMP aware.
15981598 * You can refer to *perf_event_read_simple* for a simple example.
15991599 * @param pb the perf buffer structure
1600- * @param buf_idx the buffer index to retreive
1600+ * @param buf_idx the buffer index to retrieve
16011601 * @param buf (out) gets the base pointer of the mmap()'ed memory
16021602 * @param buf_size (out) gets the size of the mmap()'ed region
16031603 * @return 0 on success, negative error code for failure
0 commit comments