Searched hist:d5a3b1f691865be576c2bffa708549b8cdccda19 (Results 1 – 5 of 5) sorted by relevance
/linux/kernel/bpf/ |
H A D | stackmap.c | d5a3b1f691865be576c2bffa708549b8cdccda19 Thu Feb 18 04:58:58 CET 2016 Alexei Starovoitov <ast@fb.com> bpf: introduce BPF_MAP_TYPE_STACK_TRACE
add new map type to store stack traces and corresponding helper bpf_get_stackid(ctx, map, flags) - walk user or kernel stack and return id @ctx: struct pt_regs* @map: pointer to stack_trace map @flags: bits 0-7 - numer of stack frames to skip bit 8 - collect user stack instead of kernel bit 9 - compare stacks by hash only bit 10 - if two different stacks hash into the same stackid discard old other bits - reserved Return: >= 0 stackid on success or negative error
stackid is a 32-bit integer handle that can be further combined with other data (including other stackid) and used as a key into maps.
Userspace will access stackmap using standard lookup/delete syscall commands to retrieve full stack trace for given stackid.
Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | Makefile | diff d5a3b1f691865be576c2bffa708549b8cdccda19 Thu Feb 18 04:58:58 CET 2016 Alexei Starovoitov <ast@fb.com> bpf: introduce BPF_MAP_TYPE_STACK_TRACE
add new map type to store stack traces and corresponding helper bpf_get_stackid(ctx, map, flags) - walk user or kernel stack and return id @ctx: struct pt_regs* @map: pointer to stack_trace map @flags: bits 0-7 - numer of stack frames to skip bit 8 - collect user stack instead of kernel bit 9 - compare stacks by hash only bit 10 - if two different stacks hash into the same stackid discard old other bits - reserved Return: >= 0 stackid on success or negative error
stackid is a 32-bit integer handle that can be further combined with other data (including other stackid) and used as a key into maps.
Userspace will access stackmap using standard lookup/delete syscall commands to retrieve full stack trace for given stackid.
Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | verifier.c | diff d5a3b1f691865be576c2bffa708549b8cdccda19 Thu Feb 18 04:58:58 CET 2016 Alexei Starovoitov <ast@fb.com> bpf: introduce BPF_MAP_TYPE_STACK_TRACE
add new map type to store stack traces and corresponding helper bpf_get_stackid(ctx, map, flags) - walk user or kernel stack and return id @ctx: struct pt_regs* @map: pointer to stack_trace map @flags: bits 0-7 - numer of stack frames to skip bit 8 - collect user stack instead of kernel bit 9 - compare stacks by hash only bit 10 - if two different stacks hash into the same stackid discard old other bits - reserved Return: >= 0 stackid on success or negative error
stackid is a 32-bit integer handle that can be further combined with other data (including other stackid) and used as a key into maps.
Userspace will access stackmap using standard lookup/delete syscall commands to retrieve full stack trace for given stackid.
Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/kernel/trace/ |
H A D | bpf_trace.c | diff d5a3b1f691865be576c2bffa708549b8cdccda19 Thu Feb 18 04:58:58 CET 2016 Alexei Starovoitov <ast@fb.com> bpf: introduce BPF_MAP_TYPE_STACK_TRACE
add new map type to store stack traces and corresponding helper bpf_get_stackid(ctx, map, flags) - walk user or kernel stack and return id @ctx: struct pt_regs* @map: pointer to stack_trace map @flags: bits 0-7 - numer of stack frames to skip bit 8 - collect user stack instead of kernel bit 9 - compare stacks by hash only bit 10 - if two different stacks hash into the same stackid discard old other bits - reserved Return: >= 0 stackid on success or negative error
stackid is a 32-bit integer handle that can be further combined with other data (including other stackid) and used as a key into maps.
Userspace will access stackmap using standard lookup/delete syscall commands to retrieve full stack trace for given stackid.
Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|
/linux/include/uapi/linux/ |
H A D | bpf.h | diff d5a3b1f691865be576c2bffa708549b8cdccda19 Thu Feb 18 04:58:58 CET 2016 Alexei Starovoitov <ast@fb.com> bpf: introduce BPF_MAP_TYPE_STACK_TRACE
add new map type to store stack traces and corresponding helper bpf_get_stackid(ctx, map, flags) - walk user or kernel stack and return id @ctx: struct pt_regs* @map: pointer to stack_trace map @flags: bits 0-7 - numer of stack frames to skip bit 8 - collect user stack instead of kernel bit 9 - compare stacks by hash only bit 10 - if two different stacks hash into the same stackid discard old other bits - reserved Return: >= 0 stackid on success or negative error
stackid is a 32-bit integer handle that can be further combined with other data (including other stackid) and used as a key into maps.
Userspace will access stackmap using standard lookup/delete syscall commands to retrieve full stack trace for given stackid.
Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
|