| /scripts/coccinelle/api/ |
| A D | kvmalloc.cocci | 24 expression E, E1, size; 49 when != size = E1 94 - if (size cmp E1) 100 - if (size cmp E1) 108 - E = vmalloc(size); 126 - if (size cmp E1) 132 - if (size cmp E1) 158 - if (size cmp E1) 164 - if (size cmp E1) 190 - if (size cmp E1) [all …]
|
| A D | memdup_user.cocci | 26 expression from,to,size; 32 - (size,\(GFP_KERNEL\|GFP_USER\| 34 + to = memdup_user(from,size); 44 - if (copy_from_user(to, from, size) != 0) { 51 expression from,to,size; 57 + to = vmemdup_user(from,size); 74 expression from,to,size; 80 (size,\(GFP_KERNEL\|GFP_USER\| 83 if (copy_from_user(to, from, size) != 0) 87 expression from,to,size; [all …]
|
| A D | memdup.cocci | 36 expression from,to,size,flag; 41 - to = \(kmalloc@p\|kzalloc@p\)(size,flag); 42 + to = kmemdup(from,size,flag); 44 - memcpy(to, from, size); 47 expression from,to,size,flag; 52 * to = \(kmalloc@p\|kzalloc@p\)(size,flag); 54 * memcpy(to, from, size);
|
| A D | kfree_sensitive.cocci | 51 expression E, size; 57 - memzero_explicit@m((T)E, size); 65 + kvfree_sensitive(E, size); 69 expression E, size; 75 - memset@m((T)E, 0, size); 83 + kvfree_sensitive(E, size);
|
| /scripts/ |
| A D | checkstack.pl | 120 my $size = 0; 125 $size = ($size + 1) * 4; 128 return $size; 164 my $size = $1; 165 $size = hex($size) if ($size =~ /^0x/); 168 $size = - $size; 169 $size += 0x80000000; 170 $size += 0x80000000; 174 $total_size += $size; 177 my $size = $1; [all …]
|
| A D | stackdelta | 25 my ($file, $func, $size, $type) = split; 41 $su{"${file}\t${func}"} = {size => $size, type => $type}; 54 my $x = $old->{$_}{size}; 55 my $y = $new->{$_}{size};
|
| A D | extract-sys-certs.pl | 100 my $size; 127 $size = unpack 'L!', $packed; 128 $end = $start + $size; 130 printf "Have %u bytes of certs at VMA 0x%x\n", $size, $start; 149 my $len = sysread(FD, $buf, $size); 151 die "Short read on $vmlinux\n" if ($len != $size); 156 $len = syswrite(FD, $buf, $size); 158 die "Short write on $keyring\n" if ($len != $size);
|
| A D | insert-sys-cert.c | 65 int size; member 99 s->size = 0; in get_symbol_from_map() 166 s->size = 0; in get_symbol_from_table() 176 s->size = elf_sym->st_size; in get_symbol_from_table() 217 *size = st.st_size; in map_file() 244 *size = st.st_size; in read_file() 245 buf = malloc(*size); in read_file() 251 if (read(fd, buf, *size) != *size) { in read_file() 264 info("size: %d\n", s->size); in print_sym() 399 if (cert_size < cert_sym.size) in main() [all …]
|
| A D | sorttable.c | 202 SHDR_ADDR(size) 340 *size = sb.st_size; in mmap_file() 585 uint64_t size; member 610 fi->size = size; in add_field() 660 uint64_t size; in parse_symbols() local 668 if (add_field(addr, size) < 0) in parse_symbols() 700 void *array_end = ptr + size; in fill_relocs() 790 void *end = ptr + size; in fill_addrs() 804 void *end = ptr + size; in replace_addrs() 1376 size_t size = 0; in main() local [all …]
|
| A D | asn1_compiler.c | 303 unsigned char size; member 325 clen = (dlen < token->size) ? dlen : token->size; in directive_compare() 477 tokens[tix].size = 3; in tokenise() 487 tokens[tix].size = 2; in tokenise() 494 tokens[tix].size = 2; in tokenise() 502 tokens[tix].size = 1; in tokenise() 723 if ((*a)->name->size != (*b)->name->size) in type_index_compare() 724 return (*a)->name->size - (*b)->name->size; in type_index_compare() 736 if (token->size != type->name->size) in type_finder() 737 return token->size - type->name->size; in type_finder() [all …]
|
| A D | make_fit.py | 265 size = 0 274 size += os.path.getsize(args.kernel) 291 size += os.path.getsize(fn) 302 return fsw.as_fdt().as_bytearray(), seq + 1, size 309 out_data, count, size = build_fit(args)
|
| A D | kallsyms.c | 522 unsigned int i, len, size; in compress_symbols() local 537 size = len; in compress_symbols() 542 size -= (p2 - p1); in compress_symbols() 543 memmove(p2, p2 + 1, size); in compress_symbols() 547 if (size < 2) break; in compress_symbols() 550 p2 = find_token(p1, size, str); in compress_symbols()
|
| /scripts/include/ |
| A D | xalloc.h | 9 static inline void *xmalloc(size_t size) in xmalloc() argument 11 void *p = malloc(size); in xmalloc() 18 static inline void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 20 void *p = calloc(nmemb, size); in xcalloc() 27 static inline void *xrealloc(void *p, size_t size) in xrealloc() argument 29 p = realloc(p, size); in xrealloc()
|
| A D | hashtable.h | 10 #define HASHTABLE_DECLARE(name, size) struct hlist_head name[size] argument 12 #define HASHTABLE_DEFINE(name, size) \ argument 13 HASHTABLE_DECLARE(name, size) = \ 14 { [0 ... ((size) - 1)] = HLIST_HEAD_INIT }
|
| /scripts/dtc/ |
| A D | fdtget.c | 32 int size; /* data size (1/2/4) */ member 55 int i, size; in show_data() local 80 size = disp->size; in show_data() 81 if (size == -1) { in show_data() 82 size = (len % 4) == 0 ? 4 : 1; in show_data() 83 } else if (len % size) { in show_data() 91 for (i = 0; i < len; i += size, p += size) { in show_data() 94 value = size == 4 ? fdt32_to_cpu(*(const uint32_t *)p) : in show_data() 95 size == 2 ? (*p << 8) | p[1] : *p; in show_data() 299 disp.size = -1; in main() [all …]
|
| A D | fdtput.c | 26 int size; /* data size (1/2/4) */ member 80 len = disp->size == -1 ? 4 : disp->size; in encode_value() 107 disp->size == 1 ? "byte" : in encode_value() 108 disp->size == 2 ? "short" : "int", in encode_value() 292 disp.size = -1; in main() 320 &disp.size)) in main()
|
| A D | util.c | 49 int n, size = 0; /* start with 128 bytes */ in xavsprintf_append() local 55 size = strlen(p); in xavsprintf_append() 61 p = xrealloc(p, size + n); in xavsprintf_append() 63 n = vsnprintf(p + size, n, fmt, ap); in xavsprintf_append() 345 int utilfdt_decode_type(const char *fmt, int *type, int *size) in utilfdt_decode_type() argument 353 *size = -1; in utilfdt_decode_type() 372 *size = qualifier == 'b' ? 1 : in utilfdt_decode_type()
|
| /scripts/kconfig/ |
| A D | lexer.l | 65 static void append_string(const char *str, int size) in append_string() argument 67 int new_size = text_size + size + 1; in append_string() 74 memcpy(text + text_size, str, size); in append_string() 75 text_size += size; in append_string() 79 static void alloc_string(const char *str, int size) in alloc_string() argument 81 text = xmalloc(size + 1); in alloc_string() 82 memcpy(text, str, size); in alloc_string() 83 text[size] = 0; in alloc_string()
|
| /scripts/dtc/libfdt/ |
| A D | fdt_addresses.c | 58 const char *name, uint64_t addr, uint64_t size) in fdt_appendprop_addrrange() argument 76 if ((addr > UINT32_MAX) || (((uint64_t) UINT32_MAX + 1 - addr) < size)) in fdt_appendprop_addrrange() 89 if (size > UINT32_MAX) in fdt_appendprop_addrrange() 92 fdt32_st(prop, (uint32_t)size); in fdt_appendprop_addrrange() 94 fdt64_st(prop, size); in fdt_appendprop_addrrange()
|
| A D | fdt.h | 33 fdt64_t size; member
|
| /scripts/ipe/polgen/ |
| A D | polgen.c | 18 static int policy_to_buffer(const char *pathname, char **buffer, size_t *size) in policy_to_buffer() argument 49 *size = fsize; in policy_to_buffer() 62 static int write_boot_policy(const char *pathname, const char *buf, size_t size) in write_boot_policy() argument 77 if (!buf || size == 0) { in write_boot_policy() 85 for (i = 0; i < size; ++i) { in write_boot_policy()
|
| /scripts/coccinelle/misc/ |
| A D | array_size_dup.cocci | 5 /// 1. An opencoded expression is used before array_size() to compute the same size 6 /// 2. An opencoded expression is used after array_size() to compute the same size 43 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 51 msg = "WARNING: array_size is used later (line %s) to compute the same size" % (p2[0].line) 72 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 80 msg = "WARNING: array_size is already used (line %s) to compute the same size" % (p1[0].line) 108 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) 116 msg = "WARNING: array3_size is used later (line %s) to compute the same size" % (p2[0].line) 138 msg = "WARNING: array3_size is already used (line %s) to compute the same size" % (p1[0].line) 172 msg = "WARNING: struct_size is used later (line %s) to compute the same size" % (p2[0].line) [all …]
|
| /scripts/genksyms/ |
| A D | genksyms.h | 75 #define xmalloc(size) ({ void *__ptr = malloc(size); \ argument 76 if(!__ptr && size != 0) { \
|
| /scripts/gdb/linux/ |
| A D | stackdepot.py | 50 size = int(stack['size'].cast(utils.get_ulong_type())) 51 return stack['entries'], size
|
| /scripts/mod/ |
| A D | modpost.c | 390 *size = st.st_size; in grab_file() 402 munmap(file, size); in release_file() 414 hdr = grab_file(filename, &info->size); in parse_elf() 425 if (info->size < sizeof(*hdr)) { in parse_elf() 471 if (hdr->e_shoff > info->size) in parse_elf() 581 release_file(info->hdr, info->size); in parse_elf_finish() 682 unsigned long size = info->modinfo_len; in get_next_modinfo() local 685 size -= prev - modinfo; in get_next_modinfo() 686 modinfo = next_string(prev, &size); in get_next_modinfo() 1684 if (buf->size - buf->pos < len) { in buf_write() [all …]
|