/tools/testing/selftests/ftrace/test.d/trigger/ |
D | trigger-trace-marker-snapshot.tc | 16 cat $file | while read line; do 17 comment=`echo $line | sed -e 's/^#//'` 18 if [ "$line" != "$comment" ]; then 21 echo "testing $line for >$x<" 22 match=`echo $line | sed -e "s/>$x<//"` 23 if [ "$line" = "$match" ]; then 24 fail "$line does not have >$x< in it"
|
/tools/bootconfig/scripts/ |
D | ftrace.sh | 22 while read line; do 23 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["` 24 file=`echo $line | cut -f1 -d:` 28 while read line; do 29 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["` 30 file=`echo $line | cut -f1 -d:` 44 while read line; do 45 echo 0 > `echo $line | cut -f1 -d:` 83 while read line; do 84 echo "!$line" >> synthetic_events
|
/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);
|
D | dwarf-aux.c | 67 Dwarf_Line *line; in cu_getsrc_die() local 79 line = dwarf_onesrcline(lines, n); in cu_getsrc_die() 80 if (!line || dwarf_lineaddr(line, &laddr) != 0) in cu_getsrc_die() 89 line = dwarf_onesrcline(lines, --l); in cu_getsrc_die() 90 if (!line || dwarf_lineaddr(line, &laddr) != 0) in cu_getsrc_die() 96 line = dwarf_onesrcline(lines, l++); in cu_getsrc_die() 97 if (!line || dwarf_lineaddr(line, &laddr) != 0 || in cu_getsrc_die() 98 dwarf_linebeginstatement(line, &flag) != 0) in cu_getsrc_die() 104 return line; in cu_getsrc_die() 119 Dwarf_Line *line; in cu_find_lineinfo() local [all …]
|
/tools/perf/tests/shell/ |
D | daemon.sh | 7 local line=$1 14 local line_name=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $2 }'` 15 local line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'` 16 local line_output=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $4 }'` 17 local line_lock=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $5 }'` 18 local line_up=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $6 }'` 48 local line=$1 57 local line_name=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $2 }'` 58 local line_run=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $3 }'` 59 local line_base=`echo "${line}" | awk 'BEGIN { FS = ":" } ; { print $4 }'` [all …]
|
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/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() 74 char *line = NULL; in is_vmflag_set() local 86 while (getline(&line, &size, smaps) > 0) { in is_vmflag_set() 87 if (!strstr(line, VMFLAGS)) { in is_vmflag_set() 88 free(line); in is_vmflag_set() 89 line = NULL; in is_vmflag_set() 94 flags = line + strlen(VMFLAGS); in is_vmflag_set() [all …]
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | null_syscall.c | 68 char line[128]; in get_proc_frequency() local 83 while (fgets(line, sizeof(line), f) != NULL) { in get_proc_frequency() 84 if (strncmp(line, "timebase", 8) == 0) { in get_proc_frequency() 85 p = strchr(line, ':'); in get_proc_frequency() 93 if (((strncmp(line, "clock", 5) == 0) || in get_proc_frequency() 94 (strncmp(line, "cpu MHz", 7) == 0))) { in get_proc_frequency() 95 p = strchr(line, ':'); in get_proc_frequency()
|
/tools/testing/kunit/ |
D | kunit_config.py | 70 for line in blob.split('\n'): 71 line = line.strip() 72 if not line: 75 match = config_matcher.match(line) 81 empty_match = is_not_set_matcher.match(line) 87 if line[0] == '#': 90 raise KconfigParseError('Failed to parse: ' + line)
|
D | kunit_parser.py | 96 for line in kernel_output: 98 line = line.rstrip() # line always has a trailing \n 99 if kunit_start_re.search(line): 100 prefix_len = len(line.split('TAP version')[0]) 102 yield line_num, line[prefix_len:] 103 elif kunit_end_re.search(line): 106 yield line_num, line[prefix_len:] 160 line = lines.peek() 161 match = OK_NOT_OK_SUBTEST.match(line) 163 line = lines.pop() [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/testing/selftests/lkdtm/ |
D | run.sh | 29 line=$(grep -E '^#?'"$test"'\b' tests.txt) 30 if [ -z "$line" ]; then 41 test=$(echo "$line" | cut -d" " -f1) 42 if echo "$line" | grep -q ' ' ; then 43 expect=$(echo "$line" | cut -d" " -f2-)
|
/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:ustring"
|
/tools/testing/vsock/ |
D | control.c | 205 char *line; in control_expectln() local 207 line = control_readln(); in control_expectln() 209 control_cmpln(line, str, true); in control_expectln() 211 free(line); in control_expectln() 214 bool control_cmpln(char *line, const char *str, bool fail) in control_cmpln() argument 216 if (strcmp(str, line) == 0) in control_cmpln() 221 str, line); in control_cmpln()
|
/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/lib/api/fs/ |
D | cgroup.c | 22 char *line = NULL; in cgroupfs_find_mountpoint() local 53 while (getline(&line, &len, fp) != -1) { in cgroupfs_find_mountpoint() 55 p = strchr(line, ' '); in cgroupfs_find_mountpoint() 91 free(line); in cgroupfs_find_mountpoint()
|
/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/testing/selftests/ftrace/test.d/ |
D | functions | 20 while read line; do 21 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["` 22 file=`echo $line | cut -f1 -d:` 26 while read line; do 27 cmd=`echo $line | cut -f2- -d: | cut -f1 -d"["` 28 file=`echo $line | cut -f1 -d:` 42 while read line; do 43 echo 0 > `echo $line | cut -f1 -d:` 81 while read line; do 82 echo "!$line" >> synthetic_events [all …]
|
/tools/testing/selftests/pidfd/ |
D | pidfd_open_test.c | 93 char *line = NULL; in get_pid_from_fdinfo_file() local 101 while (getline(&line, &n, f) != -1) { in get_pid_from_fdinfo_file() 104 if (strncmp(line, key, keylen)) in get_pid_from_fdinfo_file() 107 numstr = trim_whitespace_in_place(line + 4); in get_pid_from_fdinfo_file() 116 free(line); in get_pid_from_fdinfo_file()
|