/scripts/ |
D | checkstack.pl | 127 my $size = $1; 128 $size = hex($size) if ($size =~ /^0x/); 130 if ($size > 0xf0000000) { 131 $size = - $size; 132 $size += 0x80000000; 133 $size += 0x80000000; 135 next if ($size > 0x10000000); 148 next if ($size < 100); 149 push @stack, "$intro$size\n"; 152 my $size = "Dynamic ($1)"; [all …]
|
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};
|
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);
|
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() 201 static void *map_file(char *file_name, int *size) in map_file() argument 217 *size = st.st_size; in map_file() 218 map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in map_file() 228 static char *read_file(char *file_name, int *size) in read_file() argument 244 *size = st.st_size; in read_file() 245 buf = malloc(*size); in read_file() [all …]
|
D | faddr2line | 103 local size= 104 [[ $func_addr =~ "/" ]] && size=${func_addr#*/} 147 if [[ -n $size ]] && [[ $size -ne $sym_size ]]; then 149 echo "skipping $func address at $addr due to size mismatch ($size != $sym_size)"
|
D | asn1_compiler.c | 303 unsigned char size; member 325 clen = (dlen < token->size) ? dlen : token->size; in directive_compare() 335 if (dlen == token->size) { in directive_compare() 340 return dlen - token->size; /* shorter -> negative */ in directive_compare() 420 tokens[tix].size = q - p; in tokenise() 423 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise() 428 memcpy(tokens[tix].content, start, tokens[tix].size); in tokenise() 429 tokens[tix].content[tokens[tix].size] = 0; in tokenise() 461 tokens[tix].size = q - p; in tokenise() 463 tokens[tix].content = malloc(tokens[tix].size + 1); in tokenise() [all …]
|
D | kallsyms.c | 514 unsigned int i, len, size; in compress_symbols() local 529 size = len; in compress_symbols() 534 size -= (p2 - p1); in compress_symbols() 535 memmove(p2, p2 + 1, size); in compress_symbols() 539 if (size < 2) break; in compress_symbols() 542 p2 = find_token(p1, size, str); in compress_symbols()
|
D | bloat-o-meter | 29 size, type, name = line.split() 39 sym[name] = sym.get(name, 0) + int(size, 16)
|
D | Makefile.ubsan | 8 CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size)
|
/scripts/dtc/ |
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 …]
|
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()
|
D | fdtdump.c | 62 uint64_t addr, size; in dump_blob() local 90 size = fdt64_to_cpu(p_rsvmap[i].size); in dump_blob() 91 if (addr == 0 && size == 0) in dump_blob() 95 (unsigned long long)addr, (unsigned long long)size); in dump_blob()
|
D | util.c | 37 int n, size = 0; /* start with 128 bytes */ in xavsprintf_append() local 43 size = strlen(p); in xavsprintf_append() 49 p = xrealloc(p, size + n); in xavsprintf_append() 51 n = vsnprintf(p + size, n, fmt, ap); in xavsprintf_append() 333 int utilfdt_decode_type(const char *fmt, int *type, int *size) in utilfdt_decode_type() argument 341 *size = -1; in utilfdt_decode_type() 360 *size = qualifier == 'b' ? 1 : in utilfdt_decode_type()
|
/scripts/coccinelle/api/ |
D | memdup_user.cocci | 19 expression from,to,size; 23 - to = \(kmalloc\|kzalloc\)(size,GFP_KERNEL); 24 + to = memdup_user(from,size); 34 - if (copy_from_user(to, from, size) != 0) { 41 expression from,to,size; 46 * to = \(kmalloc@p\|kzalloc@p\)(size,GFP_KERNEL); 48 if (copy_from_user(to, from, size) != 0)
|
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);
|
/scripts/kconfig/ |
D | lexer.l | 56 static void append_string(const char *str, int size) in append_string() argument 58 int new_size = text_size + size + 1; in append_string() 65 memcpy(text + text_size, str, size); in append_string() 66 text_size += size; in append_string() 70 static void alloc_string(const char *str, int size) in alloc_string() argument 72 text = xmalloc(size + 1); in alloc_string() 73 memcpy(text, str, size); in alloc_string() 74 text[size] = 0; in alloc_string()
|
D | util.c | 82 void *xmalloc(size_t size) in xmalloc() argument 84 void *p = malloc(size); in xmalloc() 91 void *xcalloc(size_t nmemb, size_t size) in xcalloc() argument 93 void *p = calloc(nmemb, size); in xcalloc() 100 void *xrealloc(void *p, size_t size) in xrealloc() argument 102 p = realloc(p, size); in xrealloc()
|
D | lkc.h | 85 void *xmalloc(size_t size); 86 void *xcalloc(size_t nmemb, size_t size); 87 void *xrealloc(void *p, size_t size);
|
/scripts/mod/ |
D | modpost.h | 77 static inline void __endian(const void *src, void *dest, unsigned int size) in __endian() argument 80 for (i = 0; i < size; i++) in __endian() 81 ((unsigned char*)dest)[i] = ((unsigned char*)src)[size - i-1]; in __endian() 103 int size; member 136 unsigned long size; member 198 void *grab_file(const char *filename, unsigned long *size); 199 char* get_next_line(unsigned long *pos, void *file, unsigned long size); 200 void release_file(void *file, unsigned long size);
|
D | file2alias.c | 126 unsigned long size, unsigned long id_size, in device_id_check() argument 131 if (size % id_size || size < id_size) { in device_id_check() 137 modname, device_id, id_size, device_id, size, device_id); in device_id_check() 141 if (*(uint8_t*)(symval+size-id_size+i)) { in device_id_check() 144 modname, device_id, id_size, size / id_size); in device_id_check() 147 *(uint8_t*)(symval+size-id_size+i) ); in device_id_check() 329 static void do_usb_table(void *symval, unsigned long size, in do_usb_table() argument 335 device_id_check(mod->name, "usb", size, id_size, symval); in do_usb_table() 338 size -= id_size; in do_usb_table() 340 for (i = 0; i < size; i += id_size) in do_usb_table() [all …]
|
D | modpost.c | 422 void *grab_file(const char *filename, unsigned long *size) in grab_file() argument 434 *size = st.st_size; in grab_file() 435 map = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in grab_file() 449 char *get_next_line(unsigned long *pos, void *file, unsigned long size) in get_next_line() argument 457 for (; *pos < size ; (*pos)++) { in get_next_line() 463 if (*p != '\n' && (*pos < size)) { in get_next_line() 478 void release_file(void *file, unsigned long size) in release_file() argument 480 munmap(file, size); in release_file() 492 hdr = grab_file(filename, &info->size); in parse_elf() 503 if (info->size < sizeof(*hdr)) { in parse_elf() [all …]
|
/scripts/dtc/libfdt/ |
D | fdt_addresses.c | 56 const char *name, uint64_t addr, uint64_t size) in fdt_appendprop_addrrange() argument 74 if ((addr > UINT32_MAX) || ((UINT32_MAX + 1 - addr) < size)) in fdt_appendprop_addrrange() 87 if (size > UINT32_MAX) in fdt_appendprop_addrrange() 90 fdt32_st(prop, (uint32_t)size); in fdt_appendprop_addrrange() 92 fdt64_st(prop, size); in fdt_appendprop_addrrange()
|
D | fdt.c | 43 uint32_t base, uint32_t size) in check_block_() argument 47 if ((base + size) < base) in check_block_() 49 if (!check_off_(hdrsize, totalsize, base + size)) in check_block_()
|
D | fdt.h | 33 fdt64_t size; member
|
/scripts/genksyms/ |
D | genksyms.h | 70 #define xmalloc(size) ({ void *__ptr = malloc(size); \ argument 71 if(!__ptr && size != 0) { \
|