Skip to content

Commit 9cb5572

Browse files
committed
fixdoc
1 parent f37434b commit 9cb5572

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/reference_guide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s
2828
- [Maps](#maps)
2929
- [1. BPF_TABLE](#1-bpf_table)
3030
- [2. BPF_HASH](#2-bpf_hash)
31-
- [3. BPF_ARRAY](#2-bpf_array)
31+
- [3. BPF_ARRAY](#3-bpf_array)
3232
- [4. BPF_HISTOGRAM](#4-bpf_histogram)
3333
- [5. BPF_STACK_TRACE](#5-bpf_stack_trace)
3434
- [6. BPF_PERF_ARRAY](#6-bpf_perf_array)

‎docs/tutorial_bcc_python_developer.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ struct key_t {
669669
u32 curr_pid;
670670
};
671671
// map_type, key_type, leaf_type, table_name, num_entry
672-
BPF_HASH(struct key_t, u64, stats, 1024);
672+
BPF_HASH(stats, struct key_t, u64, 1024);
673673
// attach to finish_task_switch in kernel/sched/core.c, which has the following
674674
// prototype:
675675
// struct rq *finish_task_switch(struct task_struct *prev)

0 commit comments

Comments
 (0)