Commit af20e1e3 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #1083 from palmtenor/fixdoc

Fix some documentation mistakes
parents f37434bd 9cb55729
...@@ -28,7 +28,7 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s ...@@ -28,7 +28,7 @@ This guide is incomplete. If something feels missing, check the bcc and kernel s
- [Maps](#maps) - [Maps](#maps)
- [1. BPF_TABLE](#1-bpf_table) - [1. BPF_TABLE](#1-bpf_table)
- [2. BPF_HASH](#2-bpf_hash) - [2. BPF_HASH](#2-bpf_hash)
- [3. BPF_ARRAY](#2-bpf_array) - [3. BPF_ARRAY](#3-bpf_array)
- [4. BPF_HISTOGRAM](#4-bpf_histogram) - [4. BPF_HISTOGRAM](#4-bpf_histogram)
- [5. BPF_STACK_TRACE](#5-bpf_stack_trace) - [5. BPF_STACK_TRACE](#5-bpf_stack_trace)
- [6. BPF_PERF_ARRAY](#6-bpf_perf_array) - [6. BPF_PERF_ARRAY](#6-bpf_perf_array)
......
...@@ -669,7 +669,7 @@ struct key_t { ...@@ -669,7 +669,7 @@ struct key_t {
u32 curr_pid; u32 curr_pid;
}; };
// map_type, key_type, leaf_type, table_name, num_entry // map_type, key_type, leaf_type, table_name, num_entry
BPF_HASH(struct key_t, u64, stats, 1024); BPF_HASH(stats, struct key_t, u64, 1024);
// attach to finish_task_switch in kernel/sched/core.c, which has the following // attach to finish_task_switch in kernel/sched/core.c, which has the following
// prototype: // prototype:
// struct rq *finish_task_switch(struct task_struct *prev) // struct rq *finish_task_switch(struct task_struct *prev)
......
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