Skip to content

Commit 1449916

Browse files
mauriciovasquezbernalAlexei Starovoitov
authored andcommitted
bpf: rename stack trace map operations
In the following patches queue and stack maps (FIFO and LIFO datastructures) will be implemented. In order to avoid confusion and a possible name clash rename stack_map_ops to stack_trace_map_ops Signed-off-by: Mauricio Vasquez B <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 3ddeac6 commit 1449916

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/bpf_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ BPF_MAP_TYPE(BPF_MAP_TYPE_LRU_HASH, htab_lru_map_ops)
5151
BPF_MAP_TYPE(BPF_MAP_TYPE_LRU_PERCPU_HASH, htab_lru_percpu_map_ops)
5252
BPF_MAP_TYPE(BPF_MAP_TYPE_LPM_TRIE, trie_map_ops)
5353
#ifdef CONFIG_PERF_EVENTS
54-
BPF_MAP_TYPE(BPF_MAP_TYPE_STACK_TRACE, stack_map_ops)
54+
BPF_MAP_TYPE(BPF_MAP_TYPE_STACK_TRACE, stack_trace_map_ops)
5555
#endif
5656
BPF_MAP_TYPE(BPF_MAP_TYPE_ARRAY_OF_MAPS, array_of_maps_map_ops)
5757
BPF_MAP_TYPE(BPF_MAP_TYPE_HASH_OF_MAPS, htab_of_maps_map_ops)

kernel/bpf/stackmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ static void stack_map_free(struct bpf_map *map)
600600
put_callchain_buffers();
601601
}
602602

603-
const struct bpf_map_ops stack_map_ops = {
603+
const struct bpf_map_ops stack_trace_map_ops = {
604604
.map_alloc = stack_map_alloc,
605605
.map_free = stack_map_free,
606606
.map_get_next_key = stack_map_get_next_key,

0 commit comments

Comments
 (0)