/scripts/kconfig/ |
D | util.c | 35 gs.s = xmalloc(sizeof(char) * 64); in str_new() 38 strcpy(gs.s, "\0"); in str_new() 45 if (gs->s) in str_free() 46 free(gs->s); in str_free() 47 gs->s = NULL; in str_free() 52 void str_append(struct gstr *gs, const char *s) in str_append() argument 55 if (s) { in str_append() 56 l = strlen(gs->s) + strlen(s) + 1; in str_append() 58 gs->s = xrealloc(gs->s, l); in str_append() 61 strcat(gs->s, s); in str_append() [all …]
|
/scripts/ |
D | subarch.include | 7 SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ 8 -e s/sun4u/sparc64/ \ 9 -e s/arm.*/arm/ -e s/sa110/arm/ \ 10 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 11 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 12 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ 13 -e s/riscv.*/riscv/)
|
D | insert-sys-cert.c | 94 struct sym *s) in get_symbol_from_map() argument 99 s->size = 0; in get_symbol_from_map() 100 s->address = 0; in get_symbol_from_map() 101 s->offset = 0; in get_symbol_from_map() 125 s->address = strtoul(l, NULL, 16); in get_symbol_from_map() 126 if (s->address == 0) in get_symbol_from_map() 128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map() 129 s->name = name; in get_symbol_from_map() 130 s->content = (void *)hdr + s->offset; in get_symbol_from_map() 158 char *name, struct sym *s) in get_symbol_from_table() argument [all …]
|
D | headerdep.pl | 128 printf "%s from %s,\n", $msg, $last->[1] if defined $last; 131 printf "%s from %s:%d%s\n", 137 printf "%s:%d: warning: recursive header inclusion\n", 178 printf "\t%s [label=\"%s\"];\n", 187 printf "\t%s -> %s;\n",
|
D | extract-sys-certs.pl | 106 my $s = undef; 120 die "Cert object in multiple sections: ", $s_name, " and ", $s->{name}, "\n" 121 if ($s); 135 $s = $sec; 139 unless ($s); 141 print "Certificate list in section ", $s->{name}, "\n"; 143 my $foff = $start - $s->{vma} + $s->{foff};
|
D | decodecode | 11 rm -f $T $T.s $T.o $T.oo $T.aa $T.dis 71 ${CROSS_COMPILE}as $AFLAGS -o $1.o $1.s > /dev/null 2>&1 103 echo -n " .$type 0x" > $T.s 104 echo $beforemark | sed -e 's/ /,0x/g; s/[<>()]//g' >> $T.s 107 rm -f $T.o $T.s $T.dis 115 echo -n " .$type 0x" > $T.s 116 echo $code >> $T.s
|
D | kallsyms.c | 110 static int read_symbol(FILE *in, struct sym_entry *s) in read_symbol() argument 115 rc = fscanf(in, "%llx %c %499s\n", &s->addr, &stype, sym); in read_symbol() 130 _text = s->addr; in read_symbol() 131 else if (check_symbol_range(sym, s->addr, text_ranges, in read_symbol() 159 s->len = strlen(sym) + 1; in read_symbol() 160 s->sym = malloc(s->len + 1); in read_symbol() 161 if (!s->sym) { in read_symbol() 166 strcpy((char *)s->sym + 1, sym); in read_symbol() 167 s->sym[0] = stype; in read_symbol() 169 s->percpu_absolute = 0; in read_symbol() [all …]
|
D | bootgraph.pl | 177 my ($s, $s2, $s3, $e, $w, $y, $y2, $style); 184 $s = ($start{$key} - $firsttime) * $mult; 185 $s2 = $s + 6; 186 $s3 = $s + 1; 188 $w = $e - $s; 201 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"115\" style=\"$style_wait\"/>\n"; 203 print "<rect x=\"$s\" width=\"$w\" y=\"$y\" height=\"145\" style=\"$style\"/>\n";
|
D | gen_ksymdeps.sh | 16 for s in $ksyms 18 echo $s | sed -e 's:^_*: $(wildcard include/ksym/:' \
|
D | parse-maintainers.pl | 85 my $s = shift; 86 $s =~ s/\s+$//; 87 $s =~ s/^\s+//; 88 return $s;
|
/scripts/dtc/ |
D | util.c | 25 char *xstrdup(const char *s) in xstrdup() argument 27 int len = strlen(s) + 1; in xstrdup() 30 memcpy(d, s, len); in xstrdup() 109 const char *s = data; in util_is_printable_string() local 117 if (s[len - 1] != '\0') in util_is_printable_string() 120 se = s + len; in util_is_printable_string() 122 while (s < se) { in util_is_printable_string() 123 ss = s; in util_is_printable_string() 124 while (s < se && *s && isprint((unsigned char)*s)) in util_is_printable_string() 125 s++; in util_is_printable_string() [all …]
|
D | fdtdump.c | 59 const char *p, *s, *t; in dump_blob() local 104 s = p; in dump_blob() 105 p = PALIGN(p + strlen(s) + 1, 4); in dump_blob() 107 if (*s == '\0') in dump_blob() 108 s = "/"; in dump_blob() 110 printf("%*s%s {\n", depth * shift, "", s); in dump_blob() 133 s = p_strings + fdt32_to_cpu(GET_CELL(p)); in dump_blob() 140 printf("%*s%s", depth * shift, "", s); in dump_blob()
|
D | util.h | 24 #define stringify(s) stringify_(s) argument 25 #define stringify_(s) #s argument 58 extern char *xstrdup(const char *s); 82 char get_escape_char(const char *s, int *i);
|
D | fdtget.c | 57 const char *s; in show_data() local 73 for (s = data; s - data < len; s += strlen(s) + 1) { in show_data() 74 if (s != data) in show_data() 76 printf("%s", (const char *)s); in show_data()
|
/scripts/mod/ |
D | modpost.c | 205 struct symbol *s = NOFAIL(malloc(sizeof(*s) + strlen(name) + 1)); in alloc_symbol() local 207 memset(s, 0, sizeof(*s)); in alloc_symbol() 208 strcpy(s->name, name); in alloc_symbol() 209 s->weak = weak; in alloc_symbol() 210 s->next = next; in alloc_symbol() 211 s->is_static = 1; in alloc_symbol() 212 return s; in alloc_symbol() 231 struct symbol *s; in find_symbol() local 237 for (s = symbolhash[tdb_hash(name) % SYMBOL_HASH_SIZE]; s; s = s->next) { in find_symbol() 238 if (strcmp(s->name, name) == 0) in find_symbol() [all …]
|
/scripts/coccinelle/misc/ |
D | doubleinit.cocci | 18 identifier I, s, fld; 23 struct I s =@p0 { ..., .fld@p = E, ...}; 25 @s@ 26 identifier I, s, r.fld; 31 struct I s =@p0 { ..., .fld@p = E, ...}; 36 ps << s.p; 42 cocci.print_secs("s",ps) 48 ps << s.p; 53 msg = "%s: first occurrence line %s, second occurrence line %s" % (fld,ps[0].line,pr[0].line)
|
D | orplus.cocci | 29 @s@ 53 @depends on s@ 60 @script:python depends on s && org@ 66 @script:python depends on s && report@
|
/scripts/selinux/genheaders/ |
D | genheaders.c | 29 static char *stoupperx(const char *s) in stoupperx() argument 31 char *s2 = strdup(s); in stoupperx() 84 const char *s = initial_sid_to_string[i]; in main() local 85 fprintf(fout, "#define SECINITSID_%-39s %2d\n", s, i); in main() 93 static char s[] = "SOCKET"; in main() local 95 int len = strlen(map->name), l = sizeof(s) - 1; in main() 96 if (len >= l && memcmp(map->name + len - l, s, l) == 0) in main()
|
/scripts/tracing/ |
D | draw_functrace.py | 72 s = "%s----%s (%s)\n" % (branch, self._func, self._time) 74 s = "%s----%s\n" % (branch, self._func) 81 s += "%s" % self._children[i].__toString(branch +\ 84 s += "%s" % self._children[i].__toString(branch +\ 87 return s
|
/scripts/dtc/libfdt/ |
D | fdt_strerror.c | 52 const char *s = fdt_errtable[-errval].str; in fdt_strerror() local 54 if (s) in fdt_strerror() 55 return s; in fdt_strerror()
|
D | fdt_sw.c | 242 static int fdt_add_string_(void *fdt, const char *s) in fdt_add_string_() argument 246 int len = strlen(s) + 1; in fdt_add_string_() 254 memcpy(strtab + offset, s, len); in fdt_add_string_() 260 static void fdt_del_last_string_(void *fdt, const char *s) in fdt_del_last_string_() argument 263 int len = strlen(s) + 1; in fdt_del_last_string_() 268 static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) in fdt_find_add_string_() argument 276 p = fdt_find_string_(strtab - strtabsize, strtabsize, s); in fdt_find_add_string_() 282 return fdt_add_string_(fdt, s); in fdt_find_add_string_()
|
/scripts/coccinelle/api/ |
D | check_bq27xxx_data.cocci | 20 Printf.printf "%s:%d:%d-%d: %s" p.file p.line p.col p.col_end msg 88 "WARNING %s and %s (line %d) are identical\n" 124 "WARNING %s and %s (line %d) are identical\n" 160 "WARNING %s and %s (line %d) are identical\n"
|
/scripts/coccinelle/api/alloc/ |
D | zalloc-simple.cocci | 6 /// Note in particular that there are no ...s in the rule, so all of the 151 msg="%s" % (x) 160 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x) 181 msg="%s" % (x) 190 msg="WARNING: vzalloc should be used for %s, instead of vmalloc/memset" % (x) 211 msg="%s" % (x) 220 msg="WARNING: dma_alloc_coherent use in %s already zeroes out memory, so memset is not needed" % (… 241 msg="%s" % (x) 250 msg="WARNING: kzalloc_node should be used for %s, instead of kmalloc_node/memset" % (x) 271 msg="%s" % (x) [all …]
|
/scripts/coccinelle/free/ |
D | pci_free_consistent.cocci | 43 …ssing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" … 51 …ssing pci_free_consistent; pci_alloc_consistent on line %s and return without freeing on line %s" …
|
/scripts/basic/ |
D | fixdep.c | 232 static int str_ends_with(const char *s, int slen, const char *sub) in str_ends_with() argument 239 return !memcmp(s + slen - sublen, sub, sublen); in str_ends_with() 299 static int is_ignored_file(const char *s, int len) in is_ignored_file() argument 301 return str_ends_with(s, len, "include/generated/autoconf.h") || in is_ignored_file() 302 str_ends_with(s, len, "include/generated/autoksyms.h") || in is_ignored_file() 303 str_ends_with(s, len, ".ver"); in is_ignored_file()
|