Home
last modified time | relevance | path

Searched refs:id_offs (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dstacktrace_build_id_nmi.c33 struct bpf_stack_build_id id_offs[PERF_MAX_STACK_DEPTH]; in test_stacktrace_build_id_nmi() local
112 id_offs, sizeof(id_offs), 0); in test_stacktrace_build_id_nmi()
117 if (id_offs[i].status == BPF_STACK_BUILD_ID_VALID && in test_stacktrace_build_id_nmi()
118 id_offs[i].offset != 0) { in test_stacktrace_build_id_nmi()
121 id_offs[i].build_id[j] & 0xff); in test_stacktrace_build_id_nmi()
Dstacktrace_build_id.c14 struct bpf_stack_build_id id_offs[PERF_MAX_STACK_DEPTH]; in test_stacktrace_build_id() local
69 err = bpf_map_lookup_elem(stackmap_fd, &key, id_offs); in test_stacktrace_build_id()
74 if (id_offs[i].status == BPF_STACK_BUILD_ID_VALID && in test_stacktrace_build_id()
75 id_offs[i].offset != 0) { in test_stacktrace_build_id()
78 id_offs[i].build_id[j] & 0xff); in test_stacktrace_build_id()
/linux-6.1.9/kernel/bpf/
Dstackmap.c127 static void stack_map_get_build_id_offset(struct bpf_stack_build_id *id_offs, in stack_map_get_build_id_offset() argument
144 id_offs[i].status = BPF_STACK_BUILD_ID_IP; in stack_map_get_build_id_offset()
145 id_offs[i].ip = ips[i]; in stack_map_get_build_id_offset()
146 memset(id_offs[i].build_id, 0, BUILD_ID_SIZE_MAX); in stack_map_get_build_id_offset()
154 memcpy(id_offs[i].build_id, prev_build_id, in stack_map_get_build_id_offset()
159 if (!vma || build_id_parse(vma, id_offs[i].build_id, NULL)) { in stack_map_get_build_id_offset()
161 id_offs[i].status = BPF_STACK_BUILD_ID_IP; in stack_map_get_build_id_offset()
162 id_offs[i].ip = ips[i]; in stack_map_get_build_id_offset()
163 memset(id_offs[i].build_id, 0, BUILD_ID_SIZE_MAX); in stack_map_get_build_id_offset()
167 id_offs[i].offset = (vma->vm_pgoff << PAGE_SHIFT) + ips[i] in stack_map_get_build_id_offset()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mes.c946 if (id_offs < AMDGPU_MES_CTX_MAX_OFFS) \
948 _eng[ring->idx].slots[id_offs]); \
949 else if (id_offs == AMDGPU_MES_CTX_RING_OFFS) \
952 else if (id_offs == AMDGPU_MES_CTX_IB_OFFS) \
955 else if (id_offs == AMDGPU_MES_CTX_PADDING_OFFS) \
960 int amdgpu_mes_ctx_get_offs(struct amdgpu_ring *ring, unsigned int id_offs) in amdgpu_mes_ctx_get_offs() argument
Damdgpu_mes.h309 int amdgpu_mes_ctx_get_offs(struct amdgpu_ring *ring, unsigned int id_offs);