Function report |
Source Code:kernel\bpf\core.c |
Create Date:2022-07-28 12:47:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_prog_calc_tag
Proto:int bpf_prog_calc_tag(struct bpf_prog *fp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_prog * | fp |
267 | bits_offset = s - sizeof(__be64) |
268 | raw_size = bpf_prog_tag_scratch_size(fp) |
289 | When i < Number of filter blocks cycle |
291 | If Not was_ld_map && opcode == ( BPF_LD | BPF_IMM | double word (64-bit) ) && ( source register == When BPF ldimm64's insn[0] || source register == BPF_PSEUDO_MAP_VALUE ) Then |
295 | was_ld_map = true |
296 | signed immediate constant = 0 |
297 | Else if was_ld_map && opcode == 0 && dest register == 0 && source register == 0 && signed offset == 0 Then |
302 | was_ld_map = false |
303 | signed immediate constant = 0 |
304 | Else |
305 | was_ld_map = false |
309 | psize = bpf_prog_insn_size(fp) |
318 | Else |
319 | bits = todo + bsize + bits_offset |
320 | blocks++ |
322 | bits = cpu_to_be64((psize - 1) << 3) |
330 | When i < SHA_DIGEST_WORDS cycle result[i] = cpu_to_be32(digest[i]) |
332 | No 3D Now!(tag, result, size of tag ) |
335 | Return 0 |
Name | Describe |
---|---|
replace_map_fd_with_map_ptr | look for pseudo eBPF instructions that access map FDs and* replace them with actual map pointers |
jit_subprogs |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |