/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-trace-marker-snapshot.tc | 35 cat $file | while read line; do 36 comment=`echo $line | sed -e 's/^#//'` 37 if [ "$line" != "$comment" ]; then 40 echo "testing $line for >$x<" 41 match=`echo $line | sed -e "s/>$x<//"` 42 if [ "$line" = "$match" ]; then 43 fail "$line does not have >$x< in it"
|
/tools/lib/symbol/ |
D | kallsyms.c | 35 char *line = NULL; in kallsyms__parse() local 51 line_len = getline(&line, &n, file); in kallsyms__parse() 52 if (line_len < 0 || !line) in kallsyms__parse() 55 line[--line_len] = '\0'; /* \n */ in kallsyms__parse() 57 len = hex2u64(line, &start); in kallsyms__parse() 67 symbol_type = line[len]; in kallsyms__parse() 69 symbol_name = line + len; in kallsyms__parse() 82 free(line); in kallsyms__parse()
|
/tools/perf/arch/s390/util/ |
D | header.c | 32 char *cp, *line = NULL, *line2; in get_cpuid() local 60 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid() 61 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid() 62 line2 = line + strlen(SYSINFO_MANU); in get_cpuid() 70 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid() 71 line2 = line + strlen(SYSINFO_TYPE); in get_cpuid() 79 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid() 80 line2 = line + strlen(SYSINFO_MODEL); in get_cpuid() 103 while ((read = getline(&line, &line_sz, sysinfo)) != -1) { in get_cpuid() 104 if (strncmp(line, SRVLVL_CPUMF, strlen(SRVLVL_CPUMF))) in get_cpuid() [all …]
|
/tools/perf/util/ |
D | find-map.c | 5 char line[128]; in find_map() local 14 while (!found && fgets(line, sizeof(line), maps)) { in find_map() 18 if (2 != sscanf(line, "%p-%p r-xp %*x %*x:%*x %*u %n", in find_map() 24 if (!strncmp(&line[m], name, strlen(name))) in find_map()
|
D | trace-event-parse.c | 128 char *line; in parse_ftrace_printk() local 133 line = strtok_r(file, "\n", &next); in parse_ftrace_printk() 134 while (line) { in parse_ftrace_printk() 135 addr_str = strtok_r(line, ":", &fmt); in parse_ftrace_printk() 143 line = strtok_r(NULL, "\n", &next); in parse_ftrace_printk() 153 char *line; in parse_saved_cmdline() local 157 line = strtok_r(file, "\n", &next); in parse_saved_cmdline() 158 while (line) { in parse_saved_cmdline() 159 if (sscanf(line, "%d %16s", &pid, comm) == 2) in parse_saved_cmdline() 161 line = strtok_r(NULL, "\n", &next); in parse_saved_cmdline()
|
D | srccode.h | 6 unsigned line; member 12 state->line = 0; in srccode_state_init() 18 char *find_sourceline(char *fn, unsigned line, int *lenp);
|
/tools/testing/selftests/vm/ |
D | mlock2.h | 28 char *line = NULL; in seek_to_smaps_entry() local 43 while (getline(&line, &size, file) > 0) { in seek_to_smaps_entry() 44 if (sscanf(line, "%lx-%lx %s %lx %s %lu %s\n", in seek_to_smaps_entry() 52 free(line); in seek_to_smaps_entry() 53 line = NULL; in seek_to_smaps_entry() 61 free(line); in seek_to_smaps_entry()
|
D | mlock-random-test.c | 50 char line[1024] = {0}; in get_proc_locked_vm_size() local 59 while (fgets(line, 1024, f)) { in get_proc_locked_vm_size() 60 if (strstr(line, "VmLck")) { in get_proc_locked_vm_size() 61 ret = sscanf(line, "VmLck:\t%8lu kB", &lock_size); in get_proc_locked_vm_size() 64 line, ret); in get_proc_locked_vm_size() 88 char *line; in get_proc_page_size() local 98 while (getline(&line, &size, smaps) > 0) { in get_proc_page_size() 99 if (!strstr(line, "MMUPageSize")) { in get_proc_page_size() 100 free(line); in get_proc_page_size() 101 line = NULL; in get_proc_page_size() [all …]
|
D | mlock2-tests.c | 23 char line[1024] = {0}; in get_vm_area() local 40 while(fgets(line, 1024, file)) { in get_vm_area() 41 end_addr = strchr(line, '-'); in get_vm_area() 55 sscanf(line, "%lx", &start); in get_vm_area() 127 char *line = NULL; in is_vmflag_set() local 139 while (getline(&line, &size, smaps) > 0) { in is_vmflag_set() 140 if (!strstr(line, VMFLAGS)) { in is_vmflag_set() 141 free(line); in is_vmflag_set() 142 line = NULL; in is_vmflag_set() 147 flags = line + strlen(VMFLAGS); in is_vmflag_set() [all …]
|
D | thuge-gen.c | 80 char *line = NULL; in default_huge_page_size() local 85 while (getline(&line, &linelen, f) > 0) { in default_huge_page_size() 86 if (sscanf(line, "Hugepagesize: %lu kB", &hps) == 1) { in default_huge_page_size() 91 free(line); in default_huge_page_size() 110 char *line = NULL; in read_sysfs() local 127 if (getline(&line, &linelen, f) > 0) { in read_sysfs() 128 sscanf(line, "%lu", &val); in read_sysfs() 131 free(line); in read_sysfs()
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | null_syscall.c | 67 char line[128]; in get_proc_frequency() local 82 while (fgets(line, sizeof(line), f) != NULL) { in get_proc_frequency() 83 if (strncmp(line, "timebase", 8) == 0) { in get_proc_frequency() 84 p = strchr(line, ':'); in get_proc_frequency() 92 if (((strncmp(line, "clock", 5) == 0) || in get_proc_frequency() 93 (strncmp(line, "cpu MHz", 7) == 0))) { in get_proc_frequency() 94 p = strchr(line, ':'); in get_proc_frequency()
|
/tools/testing/selftests/gpio/ |
D | gpio-mockup-chardev.c | 76 char *line = NULL; in gpio_debugfs_get() local 91 while (getline(&line, &len, f) != -1) { in gpio_debugfs_get() 92 cur = strstr(line, consumer); in gpio_debugfs_get() 96 cur = strchr(line, ')'); in gpio_debugfs_get() 119 free(line); in gpio_debugfs_get() 196 int gpio_pin_test(struct gpiochip_info *cinfo, int line, int flag, int value) in gpio_pin_test() argument 199 unsigned int lines[] = {line}; in gpio_pin_test() 237 cinfo->name, line, flag, value); in gpio_pin_test() 242 void gpio_pin_tests(struct gpiochip_info *cinfo, unsigned int line) in gpio_pin_tests() argument 244 printf("line<%d>", line); in gpio_pin_tests() [all …]
|
/tools/testing/selftests/memfd/ |
D | common.c | 22 char *line = NULL; in default_huge_page_size() local 28 while (getline(&line, &linelen, f) > 0) { in default_huge_page_size() 29 if (sscanf(line, "Hugepagesize: %lu kB", &hps) == 1) { in default_huge_page_size() 35 free(line); in default_huge_page_size()
|
/tools/gpio/ |
D | gpio-event-mon.c | 28 unsigned int line, in monitor_device() argument 51 req.lineoffset = line; in monitor_device() 75 fprintf(stdout, "Monitoring line %d on %s\n", line, device_name); in monitor_device() 145 unsigned int line = -1; in main() local 160 line = strtoul(optarg, NULL, 10); in main() 180 if (!device_name || line == -1) { in main() 189 return monitor_device(device_name, line, handleflags, in main()
|
/tools/perf/tests/shell/lib/ |
D | probe_vfs_getname.sh | 15 …line=$(perf probe -L getname_flags 2>&1 | egrep 'result.*=.*filename;' | sed -r 's/[[:space:]]+([[… 16 perf probe -q "vfs_getname=getname_flags:${line} pathname=result->name:string" || \ 17 perf probe $verbose "vfs_getname=getname_flags:${line} pathname=filename:string"
|
/tools/testing/selftests/ftrace/test.d/ |
D | functions | 21 while read line; do 22 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["` 23 file=`echo $line | cut -f1 -d:` 27 while read line; do 28 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["` 29 file=`echo $line | cut -f1 -d:` 43 while read line; do 44 echo 0 > `echo $line | cut -f1 -d:` 82 while read line; do 83 echo "!$line" >> synthetic_events
|
/tools/cgroup/ |
D | cgroup_event_listener.c | 28 char line[LINE_MAX]; in main() local 51 ret = snprintf(line, LINE_MAX, "%d %d %s", efd, cfd, argv[2]); in main() 55 ret = write(event_control, line, strlen(line) + 1); in main()
|
/tools/power/pm-graph/ |
D | bootgraph.py | 136 def myCronJob(self, line): argument 137 if '@reboot' not in line: 139 if 'bootgraph' in line or 'analyze_boot.py' in line or '-cronjob' in line: 307 for line in lf: 308 line = aslib.ascii(line).replace('\r\n', '') 310 if re.match(tp.stampfmt, line): 311 tp.stamp = line 313 elif re.match(tp.sysinfofmt, line): 314 tp.sysinfo = line 316 elif re.match(tp.cmdlinefmt, line): [all …]
|
/tools/power/cpupower/bench/ |
D | parse.c | 158 char opt[16], val[32], *line = NULL; in prepare_config() local 174 while (getline(&line, &len, configfile) != -1) { in prepare_config() 175 if (line[0] == '#' || line[0] == ' ' || line[0] == '\n') in prepare_config() 178 if (sscanf(line, "%14s = %30s", opt, val) < 2) in prepare_config() 222 free(line); in prepare_config()
|
/tools/perf/tests/shell/ |
D | record+probe_libc_inet_pton.sh | 64 while read line <&3 && read -r pattern <&4; do 66 echo $line 67 echo "$line" | egrep -q "$pattern" 69 printf "FAIL: expected backtrace entry \"%s\" got \"%s\"\n" "$pattern" "$line"
|
/tools/testing/selftests/pidfd/ |
D | pidfd_open_test.c | 94 char *line = NULL; in get_pid_from_fdinfo_file() local 102 while (getline(&line, &n, f) != -1) { in get_pid_from_fdinfo_file() 105 if (strncmp(line, key, keylen)) in get_pid_from_fdinfo_file() 108 numstr = trim_whitespace_in_place(line + 4); in get_pid_from_fdinfo_file() 117 free(line); in get_pid_from_fdinfo_file()
|
/tools/testing/vsock/ |
D | control.c | 205 char *line; in control_expectln() local 207 line = control_readln(); in control_expectln() 208 if (strcmp(str, line) != 0) { in control_expectln() 210 str, line); in control_expectln() 214 free(line); in control_expectln()
|
/tools/firmware/ |
D | ihex2fw.c | 140 int line = 1; in process_ihex() local 147 if (data[i] == '\n') line++; in process_ihex() 153 fprintf(stderr, "Can't find valid record at line %d\n", line); in process_ihex() 174 line); in process_ihex() 189 line, crcbyte, (unsigned char)(crcbyte-crc)); in process_ihex() 207 line); in process_ihex() 216 type, line); in process_ihex() 230 type, line); in process_ihex()
|
/tools/perf/scripts/python/ |
D | net_dropmonitor.py | 27 for line in f: 28 loc = int(line.split()[0], 16) 29 name = line.split()[2]
|
/tools/testing/selftests/kexec/ |
D | test_kexec_file_load.sh | 85 line=$(getfattr -n security.ima -e hex --absolute-names $KERNEL_IMAGE 2>&1) 86 echo $line | grep -q "security.ima=0x03" 118 line=$(kexec --load --kexec-file-syscall $KERNEL_IMAGE 2>&1) 159 echo $line | grep -q "Required key not available"
|