Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 50) sorted by relevance

12

/scripts/
Dcheckstack.pl127 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 …]
Dstackdelta25 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};
Dextract-sys-certs.pl100 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);
Dinsert-sys-cert.c65 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 …]
Dfaddr2line103 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)"
Dasn1_compiler.c303 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 …]
Dkallsyms.c514 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()
Dbloat-o-meter29 size, type, name = line.split()
39 sym[name] = sym.get(name, 0) + int(size, 16)
DMakefile.ubsan8 CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size)
/scripts/dtc/
Dfdtget.c32 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 …]
Dfdtput.c26 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()
Dfdtdump.c62 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()
Dutil.c37 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/
Dmemdup_user.cocci19 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)
Dmemdup.cocci36 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/
Dlexer.l56 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()
Dutil.c82 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()
Dlkc.h85 void *xmalloc(size_t size);
86 void *xcalloc(size_t nmemb, size_t size);
87 void *xrealloc(void *p, size_t size);
/scripts/mod/
Dmodpost.h77 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);
Dfile2alias.c126 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 …]
Dmodpost.c422 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/
Dfdt_addresses.c56 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()
Dfdt.c43 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_()
Dfdt.h33 fdt64_t size; member
/scripts/genksyms/
Dgenksyms.h70 #define xmalloc(size) ({ void *__ptr = malloc(size); \ argument
71 if(!__ptr && size != 0) { \

12