Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 31) sorted by relevance

12

/tools/testing/kunit/
Dkunit_parser.py100 def consume_non_diagnositic(lines: List[str]) -> None:
101 while lines and not TAP_ENTRIES.match(lines[0]):
102 lines.pop(0)
104 def save_non_diagnositic(lines: List[str], test_case: TestCase) -> None:
105 while lines and not TAP_ENTRIES.match(lines[0]):
106 test_case.log.append(lines[0])
107 lines.pop(0)
115 def parse_ok_not_ok_test_case(lines: List[str], test_case: TestCase) -> bool:
116 save_non_diagnositic(lines, test_case)
117 if not lines:
[all …]
/tools/vm/
Dslabinfo-gnuplot.sh56 local lines=2000000
64 lines=$((xmax-xmin))
69 wc_lines=$lines
72 if [ "$wc_lines" -lt "$lines" ]; then
73 lines=$wc_lines
76 if [ $((width / lines)) -gt $min_slab_name_size ]; then
144 local lines
150 let lines=3
152 `cat "$in" | grep -A "$lines" 'Slabs sorted by loss' |\
159 let lines=3
[all …]
Dslabinfo.c1320 int lines = output_lines; in output_slabs() local
1323 lines != 0; slab++) { in output_slabs()
1328 if (lines != -1) in output_slabs()
1329 lines--; in output_slabs()
/tools/gpio/
Dgpio-utils.c58 int gpiotools_request_linehandle(const char *device_name, unsigned int *lines, in gpiotools_request_linehandle() argument
82 req.lineoffsets[i] = lines[i]; in gpiotools_request_linehandle()
86 req.lines = num_lines; in gpiotools_request_linehandle()
125 int gpiotools_request_line(const char *device_name, unsigned int *lines, in gpiotools_request_line() argument
150 req.offsets[i] = lines[i]; in gpiotools_request_line()
273 unsigned int lines[] = {line}; in gpiotools_get() local
275 ret = gpiotools_gets(device_name, lines, 1, &value); in gpiotools_get()
294 int gpiotools_gets(const char *device_name, unsigned int *lines, in gpiotools_gets() argument
305 ret = gpiotools_request_line(device_name, lines, num_lines, in gpiotools_gets()
334 unsigned int lines[] = {line}; in gpiotools_set() local
[all …]
Dgpio-event-mon.c29 unsigned int *lines, in monitor_device() argument
51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device()
72 fprintf(stdout, "Monitoring line %d on %s\n", lines[0], device_name); in monitor_device()
76 fprintf(stdout, "Monitoring lines %d", lines[0]); in monitor_device()
78 fprintf(stdout, ", %d", lines[i]); in monitor_device()
79 fprintf(stdout, " and %d on %s\n", lines[i], device_name); in monitor_device()
168 unsigned int lines[GPIO_V2_LINES_MAX]; in main() local
190 lines[num_lines] = strtoul(optarg, NULL, 10); in main()
232 return monitor_device(device_name, lines, num_lines, &config, loops); in main()
Dgpio-hammer.c25 int hammer_device(const char *device_name, unsigned int *lines, int num_lines, in hammer_device() argument
39 ret = gpiotools_request_line(device_name, lines, num_lines, in hammer_device()
57 fprintf(stdout, "%d", lines[i]); in hammer_device()
92 fprintf(stdout, "%d: %d", lines[i], in hammer_device()
130 unsigned int lines[GPIOHANDLES_MAX]; in main() local
152 lines[i] = strtoul(optarg, NULL, 10); in main()
175 return hammer_device(device_name, lines, num_lines, loops); in main()
Dgpio-utils.h27 int gpiotools_request_linehandle(const char *device_name, unsigned int *lines,
34 unsigned int *lines,
43 int gpiotools_gets(const char *device_name, unsigned int *lines,
47 int gpiotools_sets(const char *device_name, unsigned int *lines,
Dlsgpio.c124 cinfo.name, cinfo.label, cinfo.lines); in list_device()
127 for (i = 0; i < cinfo.lines; i++) { in list_device()
/tools/perf/util/
Dsrccode.c29 char **lines; member
58 static void fill_lines(char **lines, int maxline, char *map, int maplen) in fill_lines() argument
67 lines[l++] = map; in fill_lines()
71 lines[l++] = ++p; in fill_lines()
74 lines[l] = p; in fill_lines()
83 zfree(&sf->lines); in free_srcfile()
137 h->lines = calloc(h->numlines, sizeof(char *)); in find_srcfile()
138 if (!h->lines) in find_srcfile()
140 fill_lines(h->lines, h->numlines, h->map, h->maplen); in find_srcfile()
166 l = sf->lines[line]; in find_sourceline()
Ddwarf-aux.c66 Dwarf_Lines *lines; in cu_getsrc_die() local
71 if (dwarf_getsrclines(cu_die, &lines, &nlines) != 0 || in cu_getsrc_die()
79 line = dwarf_onesrcline(lines, n); in cu_getsrc_die()
89 line = dwarf_onesrcline(lines, --l); in cu_getsrc_die()
96 line = dwarf_onesrcline(lines, l++); in cu_getsrc_die()
849 Dwarf_Lines *lines; in die_walk_lines() local
872 if (dwarf_getsrclines(cu_die, &lines, &nlines) != 0) { in die_walk_lines()
880 line = dwarf_onesrcline(lines, i); in die_walk_lines()
1280 static bool die_search_idx(Dwarf_Lines *lines, unsigned long nr_lines, in die_search_idx() argument
1287 if (dwarf_lineaddr(dwarf_onesrcline(lines, i), &tmp)) in die_search_idx()
[all …]
/tools/perf/scripts/python/
Dstackcollapse.py69 lines = defaultdict(lambda: 0) variable
122 lines[stack_string] = lines[stack_string] + 1
125 list = sorted(lines)
127 print("%s %d" % (stack, lines[stack]))
/tools/hv/
Dlsvmbus49 lines = f.readlines()
52 lines = []
54 return lines
/tools/bpf/bpftool/
Dmain.c273 unsigned int lines = 0; in do_batch() local
320 lines); in do_batch()
330 p_err("command %d is too long", lines); in do_batch()
338 n_argc = make_args(buf, n_argv, BATCH_ARG_NB_MAX, lines); in do_batch()
364 lines++; in do_batch()
372 printf("processed %d commands\n", lines); in do_batch()
/tools/testing/selftests/gpio/
Dgpio-mockup-chardev.c199 unsigned int lines[] = {line}; in gpio_pin_test() local
206 ret = gpiotools_request_linehandle(cinfo->name, lines, 1, flag, &data, in gpio_pin_test()
305 gpio_pin_tests(current, current->lines - 1); in main()
306 gpio_pin_tests(current, random() % current->lines); in main()
/tools/testing/selftests/net/
Drtnetlink.sh664 lines=`ip x s list | grep $srcip | grep $dstip | wc -l`
665 test $lines -eq 2
671 lines=`ip x s get $ipsecid | grep $srcip | grep $dstip | wc -l`
672 test $lines -eq 2
678 lines=`ip x s list | wc -l`
679 test $lines -eq 0
688 lines=`ip x p list | grep $srcip | grep $dstip | wc -l`
689 test $lines -eq 2
695 lines=`ip x p get $ipsecsel | grep $srcip | grep $dstip | wc -l`
696 test $lines -eq 2
[all …]
Dfib_nexthops.sh330 lines=`wc -l $tmpfile | cut "-d " -f1`
331 test $lines -eq $el
/tools/memory-model/scripts/
DREADME12 "Result:" comment lines.
17 archive that are C-language and that have "Result:" comment lines
/tools/perf/Documentation/
Dperf-probe.txt45 or lines. If a path of module file is passed, perf-probe
81 Show source code lines which can be probed. This needs an argument
219 FUNC specifies the function name of showing lines. 'RLN' is the start line
223 many lines to show by using 'NUM'. Moreover, 'FUNC@SRC' combination is good
225 So, "source.c:100-120" shows lines between 100th to l20th in source.c file. And "func:10+20" shows …
247 Display which lines in schedule() can be probed:
263 Add probes on lines in schedule() function which calls update_rq_clock().
Dperf-annotate.txt67 Print matching source lines (may be slow).
87 samples, TAB/UNTAB cycles through the lines with more samples.
Dperf-kmem.txt52 Print n lines only
Dperf-config.txt65 respectively). Section headers can't span multiple lines.
243 in lines of assembly code from a specific program.
253 For example, let's see a part of a program. There're four lines.
472 When there're many callchains it'd print tons of lines. So perf omits
478 This is a maximum number of lines of callchain printed for a single
618 strace-like sys_enter+sys_exit lines.
631 Cmdline template. Below lines show its default value. Environment
/tools/testing/selftests/cgroup/
Dtest_core.c603 char lines[3][PATH_MAX]; in migrating_thread_fn() local
606 snprintf(lines[g], sizeof(lines[g]), "0::%s", grps[g] + strlen(grps[0])); in migrating_thread_fn()
611 if (proc_read_strstr(0, 1, "cgroup", lines[(i % 2) + 1])) in migrating_thread_fn()
/tools/memory-model/Documentation/
Dlitmus-tests.txt111 Lines 5-9 show the first process and lines 11-18 the second process. Each
139 Each process's code is similar to Linux-kernel C, as can be seen on lines
151 The P1() process declares two local variables on lines 13 and 14.
212 Another important part of this output is shown in lines 2-5, repeated here:
219 Line 2 gives the total number of end states, and each of lines 3-5 list
227 or due to being redundant with the lines discussed above. However, the
556 section on lines 12 and 13 in either case. Line 14 then uses an
729 pointer. The RCU read-side critical section spanning lines 19-22 is just
861 P0() on lines 9-18 enters an RCU read-side critical section, loads the
865 P1() on lines 20-24 updates the list header to instead reference "z",
[all …]
/tools/testing/selftests/bpf/
Dtest_offload.py522 lines = out.split('\n')
523 for line in lines:
653 lines = output.split("\n")
654 comp = len(lines) >= 2 and lines[1] == 'Error: ' + reference
665 lines = output.split("\n")
666 for l in reversed(lines):
/tools/perf/
Dbuiltin-kmem.c1811 int lines; in parse_line_opt() local
1816 lines = strtoul(arg, NULL, 10); in parse_line_opt()
1819 caller_lines = lines; in parse_line_opt()
1821 alloc_lines = lines; in parse_line_opt()

12