/scripts/ |
D | namespace.pl | 163 $_ = $File::Find::name; 223 my ($source, $type, $name); 267 ($type, $name) = (split(/ +/, $_, 3))[1..2]; 293 elsif ($name =~ /\./) { 299 $type = 'R' if ($name =~ /^__ksymtab/ || $name =~ /^__kstrtab/); 300 $name =~ s/_R[a-f0-9]{8}$//; # module versions adds this 302 $name ne 'init_module' && 303 $name ne 'cleanup_module' && 304 $name ne 'Using_Versions' && 305 $name !~ /^Version_[0-9]+$/ && [all …]
|
D | bloat-o-meter | 22 size, type, name = l[:-1].split() 25 if name.startswith("__mod_"): continue 26 if name.startswith("SyS_"): continue 27 if name.startswith("compat_SyS_"): continue 28 if name == "linux_banner": continue 30 name = re.sub(r'\.[0-9]+', '', name) 31 sym[name] = sym.get(name, 0) + int(size, 16) 44 for name in old: 45 otot += old[name] 46 if name not in common: [all …]
|
D | get_maintainer.pl | 730 my ($name, $address) = parse_email($email); 732 my $tmp_email = format_email($name, $address, $email_usename); 890 my $name = ""; 894 $name = $1; 902 $name =~ s/^\s+|\s+$//g; 903 $name =~ s/^\"|\"$//g; 906 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars 907 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes 908 $name = "\"$name\""; 911 return ($name, $address); [all …]
|
D | patch-kernel | 109 name="gzip" 113 name="bzip" 117 name="bzip2" 121 name="xz" 125 name="zip" 129 name="uncompress" 133 name="plaintext" 147 echo -n "Applying $1 (${name})... " 161 find $sourcedir/ '(' -name '*.orig' -o -name '.*.orig' ')' -exec rm -f {} \; 169 echo -n "Reversing $1 (${name}) ... " [all …]
|
D | decode_stacktrace.sh | 30 local objfile=$(find "$modpath" -name $module.ko -print -quit) 40 local name=${symbol%+*} 45 if [[ "${cache[$module,$name]+isset}" == "isset" ]]; then 46 local base_addr=${cache[$module,$name]} 48 local base_addr=$(nm "$objfile" | grep -i ' t ' | awk "/ $name\$/ {print \$1}" | head -n1) 49 cache[$module,$name]="$base_addr" 57 expr=${expr/$name/0x$base_addr} 86 symbol="$name ($code)"
|
D | analyze_suspend.py | 354 def kprobeMatch(self, name, target): argument 355 if name not in self.kprobes: 357 if re.match(self.kprobes[name]['mask'], target): 360 def basicKprobe(self, name): argument 361 self.kprobes[name] = {'name': name,'func': name,'args': dict(),'format': name,'mask': name} 362 def defaultKprobe(self, name, kdata): argument 366 k[field] = name 372 k['format'] = name 373 self.kprobes[name] = k 374 def kprobeColor(self, name): argument [all …]
|
D | tags.sh | 53 find ${tree}arch/$1 $ignore $subarchprune $prune -name "$2" \ 61 -name include -type d -print); 64 find $include $ignore -name "$2" -not -type l -print; 71 find ${tree}include $ignore -name config -prune -o -name "$1" \ 80 \( -name include -o -name arch -o -name '.tmp_*' \) -prune -o \ 81 -name "$1" -not -type l -print; 306 subarchdir=$(find ${tree}arch/$SRCARCH/ -name "mach-*" -type d -o \ 307 -name "plat-*" -type d);
|
D | extract-sys-certs.pl | 35 my $name = $2; 42 push @sections, { name => $name, 69 my $name = $3; 71 $symbols{$name} = $addr; 106 my $s_name = $sec->{name}; 118 die "Cert object in multiple sections: ", $s_name, " and ", $s->{name}, "\n" 139 print "Certificate list in section ", $s->{name}, "\n";
|
D | cleanpatch | 78 $name = basename($0); 87 print STDERR "Usage: $name [-width #] files...\n"; 96 print STDERR "$name: $f\n"; 104 print STDERR "$name: Cannot open file: $f: $!\n"; 123 print STDERR "$name: $f: binary file\n"; 181 print STDERR "$name: $f: malformed patch\n"; 187 print STDERR "$name: $f: malformed patch\n"; 240 print STDERR "$name: $f: malformed patch\n"; 252 die "$name: Failed to truncate modified file: $f: $!\n";
|
D | asn1_compiler.c | 297 char *name; member 687 struct token *name; member 710 struct token *name; member 727 if ((*a)->name->size != (*b)->name->size) in type_index_compare() 728 return (*a)->name->size - (*b)->name->size; in type_index_compare() 730 return memcmp((*a)->name->content, (*b)->name->content, in type_index_compare() 731 (*a)->name->size); in type_index_compare() 740 if (token->size != type->name->size) in type_finder() 741 return token->size - type->name->size; in type_finder() 743 return memcmp(token->content, type->name->content, in type_finder() [all …]
|
/scripts/dtc/libfdt/ |
D | libfdt.h | 188 #define __fdt_set_hdr(name) \ argument 189 static inline void fdt_set_##name(void *fdt, uint32_t val) \ 192 fdth->name = cpu_to_fdt32(val); \ 304 const char *name, int namelen); 328 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name); 470 const char *name, 501 const char *name, int *lenp); 503 const char *name, in fdt_get_property_w() argument 507 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 556 const char *name, int namelen, int *lenp); [all …]
|
D | fdt_ro.c | 133 const char *name, int namelen) in fdt_subnode_offset_namelen() argument 143 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen() 152 const char *name) in fdt_subnode_offset() argument 154 return fdt_subnode_offset_namelen(fdt, parentoffset, name, strlen(name)); in fdt_subnode_offset() 217 *len = strlen(nh->name); in fdt_get_name() 219 return nh->name; in fdt_get_name() 268 const char *name, in fdt_get_property_namelen() argument 281 name, namelen)) in fdt_get_property_namelen() 292 const char *name, int *lenp) in fdt_get_property() argument 294 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() [all …]
|
D | fdt_rw.c | 207 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name, in _fdt_resize_property() argument 213 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property() 225 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name, in _fdt_add_property() argument 236 namestroff = _fdt_find_add_string(fdt, name); in _fdt_add_property() 253 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 265 newlen = strlen(name); in fdt_set_name() 272 memcpy(namep, name, newlen+1); in fdt_set_name() 276 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument 284 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop() 286 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop() [all …]
|
/scripts/kconfig/ |
D | confdata.c | 72 char *name = getenv("KCONFIG_CONFIG"); in conf_get_configname() local 74 return name ? name : ".config"; in conf_get_configname() 79 char *name = getenv("KCONFIG_AUTOCONFIG"); in conf_get_autoconfig_name() local 81 return name ? name : "include/config/auto.conf"; in conf_get_autoconfig_name() 89 char *dst, name[SYMBOL_MAXLENGTH]; in conf_expand_value() local 92 dst = name; in conf_expand_value() 96 dst = name; in conf_expand_value() 100 sym = sym_lookup(name, 0); in conf_expand_value() 114 char *env, *name; in conf_get_default_confname() local 116 name = conf_expand_value(conf_defname); in conf_get_default_confname() [all …]
|
D | util.c | 14 struct file *file_lookup(const char *name) in file_lookup() argument 17 const char *file_name = sym_expand_string_value(name); in file_lookup() 20 if (!strcmp(name, file->name)) { in file_lookup() 28 file->name = file_name; in file_lookup() 35 int file_write_dep(const char *name) in file_write_dep() argument 42 if (!name) in file_write_dep() 43 name = ".kconfig.d"; in file_write_dep() 50 fprintf(out, "\t%s \\\n", file->name); in file_write_dep() 52 fprintf(out, "\t%s\n", file->name); in file_write_dep() 65 value = getenv(env_sym->name); in file_write_dep() [all …]
|
D | conf.c | 141 printf("(%s) ", sym->name); in conf_string() 174 if (sym->name) in conf_sym() 175 printf("(%s) ", sym->name); in conf_sym() 288 if (child->sym->name) in conf_choice() 289 printf(" (%s)", child->sym->name); in conf_choice() 434 if (sym->name && !sym_is_choice_value(sym)) { in check_conf() 435 printf("%s%s\n", CONFIG_, sym->name); in check_conf() 496 const char *name, *defconfig_file = NULL /* gcc uninit */; in main() local 564 name = av[optind]; in main() 565 conf_parse(name); in main() [all …]
|
D | symbol.c | 15 .name = "y", 19 .name = "m", 23 .name = "n", 27 .name = "", 361 sym->curr.val = sym->name; in sym_calc_value() 409 sym->name); in sym_calc_value() 811 struct symbol *sym_lookup(const char *name, int flags) in sym_lookup() argument 817 if (name) { in sym_lookup() 818 if (name[0] && !name[1]) { in sym_lookup() 819 switch (name[0]) { in sym_lookup() [all …]
|
D | lkc_proto.h | 4 void conf_parse(const char *name); 5 int conf_read(const char *name); 6 int conf_read_simple(const char *name, int); 7 int conf_write_defconfig(const char *name); 8 int conf_write(const char *name); 31 struct symbol * sym_lookup(const char *name, int flags); 32 struct symbol * sym_find(const char *name);
|
/scripts/selinux/genheaders/ |
D | genheaders.c | 9 const char *name; member 61 for (i = 0; secclass_map[i].name; i++) { in main() 63 map->name = stoupperx(map->name); in main() 75 for (i = 0; secclass_map[i].name; i++) { in main() 77 fprintf(fout, "#define SECCLASS_%s", map->name); in main() 78 for (j = 0; j < max(1, 40 - strlen(map->name)); j++) in main() 97 for (i = 0; secclass_map[i].name; i++) { in main() 99 substr = strstr(map->name, needle); in main() 101 fprintf(fout, "\tcase SECCLASS_%s:\n", map->name); in main() 124 for (i = 0; secclass_map[i].name; i++) { in main() [all …]
|
/scripts/genksyms/ |
D | genksyms.c | 58 const char *name; member 73 static void print_type_name(enum symbol_type type, const char *name); 166 struct symbol *find_symbol(const char *name, enum symbol_type ns, int exact) in find_symbol() argument 168 unsigned long h = crc32(name) % HASH_BUCKETS; in find_symbol() 173 strcmp(name, sym->name) == 0 && in find_symbol() 197 static struct symbol *__add_symbol(const char *name, enum symbol_type type, in __add_symbol() argument 236 if (!name) in __add_symbol() 241 h = crc32(name) % HASH_BUCKETS; in __add_symbol() 244 strcmp(name, sym->name) == 0) { in __add_symbol() 251 print_type_name(type, name); in __add_symbol() [all …]
|
/scripts/selinux/mdp/ |
D | mdp.c | 32 static void usage(char *name) in usage() argument 34 printf("usage: %s [-m] policy_file context_file\n", name); in usage() 40 const char *name; member 72 for (i = 0; secclass_map[i].name; i++) in main() 73 fprintf(fout, "class %s\n", secclass_map[i].name); in main() 83 for (i = 0; secclass_map[i].name; i++) { in main() 85 fprintf(fout, "class %s\n", map->name); in main() 103 for (i = 0; secclass_map[i].name; i++) in main() 105 secclass_map[i].name); in main()
|
/scripts/dtc/ |
D | livetree.c | 53 struct property *build_property(char *name, struct data val) in build_property() argument 59 new->name = name; in build_property() 65 struct property *build_property_delete(char *name) in build_property_delete() argument 71 new->name = name; in build_property_delete() 128 struct node *name_node(struct node *node, char *name) in name_node() argument 130 assert(node->name == NULL); in name_node() 132 node->name = name; in name_node() 158 delete_property_by_name(old_node, new_prop->name); in merge_nodes() 165 if (streq(old_prop->name, new_prop->name)) { in merge_nodes() 193 delete_node_by_name(old_node, new_child->name); in merge_nodes() [all …]
|
D | checks.c | 26 fprintf(stderr, "=== %s: ", (c)->name); \ 49 const char *name; member 64 .name = #nm, \ 112 (c->error) ? "ERROR" : "Warning", c->name); in check_msg() 137 TRACE(c, "%s\t'%s'", node->fullpath, prop->name); in check_nodes_props() 163 c->prereq[i]->name); in run_check() 249 if (streq(child->name, child2->name)) in check_duplicate_node_names() 264 if (streq(prop->name, prop2->name)) in check_duplicate_property_names() 266 prop->name, node->fullpath); in check_duplicate_property_names() 280 int n = strspn(node->name, c->data); in check_node_name_chars() [all …]
|
/scripts/coccinelle/iterators/ |
D | use_after_iter.cocci | 23 iterator name list_for_each_entry; 24 iterator name list_for_each_entry_reverse; 25 iterator name list_for_each_entry_continue; 26 iterator name list_for_each_entry_continue_reverse; 27 iterator name list_for_each_entry_from; 28 iterator name list_for_each_entry_safe; 29 iterator name list_for_each_entry_safe_continue; 30 iterator name list_for_each_entry_safe_from; 31 iterator name list_for_each_entry_safe_reverse; 32 iterator name hlist_for_each_entry; [all …]
|
/scripts/mod/ |
D | file2alias.c | 64 #define INIT_SECTION(name) do { \ argument 65 unsigned long name ## _len; \ 66 char *__cat(pstart_,name) = getsectdata("__TEXT", \ 67 #name, &__cat(name,_len)); \ 68 char *__cat(pstop_,name) = __cat(pstart_,name) + \ 69 __cat(name, _len); \ 70 __cat(__start_,name) = (void *)__cat(pstart_,name); \ 71 __cat(__stop_,name) = (void *)__cat(pstop_,name); \ 73 #define SECTION(name) __attribute__((section("__TEXT, " #name))) argument 77 #define INIT_SECTION(name) /* no-op for ELF */ argument [all …]
|