Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 44) sorted by relevance

12

/tools/testing/selftests/bpf/
Dtest_bpftool_synctypes.py34 def parse(self, pattern, end_marker): argument
46 capture = pattern.search(line)
47 if capture and pattern.groups >= 1:
75 pattern = re.compile('\[(BPF_\w*)\]\s*= "(.*)",?$')
81 capture = pattern.search(line)
90 def parse(self, pattern, end_marker): argument
102 entries.update(pattern.findall(line))
175 pattern = re.compile('^\s*(BPF_\w+),?(\s+/\*.*\*/)?$')
179 return parser.parse(pattern, end_marker)
181 def __get_description_list(self, start_marker, pattern, end_marker): argument
[all …]
Dtest_bpftool.py177 for pattern in expected_patterns:
178 self.assertRegex(res, pattern)
/tools/perf/tests/shell/
Drecord+probe_libc_inet_pton.sh64 while read line <&3 && read -r pattern <&4; do
65 [ -z "$pattern" ] && break
67 echo "$line" | egrep -q "$pattern"
69 printf "FAIL: expected backtrace entry \"%s\" got \"%s\"\n" "$pattern" "$line"
/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c216 static inline unsigned int extract_tid(unsigned int pattern) in extract_tid() argument
220 ret = (pattern >> THREAD_ID_SHIFT) & THREAD_ID_MASK; in extract_tid()
225 static inline unsigned int extract_word_offset(unsigned int pattern) in extract_word_offset() argument
229 ret = (pattern >> WORD_OFFSET_SHIFT) & WORD_OFFSET_MASK; in extract_word_offset()
235 static inline unsigned int extract_sweep_id(unsigned int pattern) in extract_sweep_id() argument
240 ret = (pattern >> SWEEP_ID_SHIFT) & SWEEP_ID_MASK; in extract_sweep_id()
469 unsigned int pattern = cur_sweep_id; in rim_fn() local
470 unsigned int *pattern_ptr = &pattern; in rim_fn()
/tools/bootconfig/samples/
Dgood-mixed-kv1.bconf1 # value -> subkey pattern
Dgood-mixed-kv2.bconf1 # subkey -> value pattern
/tools/perf/Documentation/
Dperf-ftrace.txt36 List available functions to trace. It accepts a pattern to
75 function (or a glob pattern). Multiple functions can be given
77 can be a glob pattern. It will be passed to 'set_ftrace_filter'
95 function (or a glob pattern). This is useful to trace for
103 given function (or a glob pattern). Like -G option, this is useful
/tools/testing/selftests/powerpc/switch_endian/
Dswitch_endian_test.S15 pattern: label
21 ld r15, pattern@TOC(%r2)
/tools/testing/selftests/net/
Dtoeplitz.sh107 local -r pattern="receive-hashing:\ on"
109 ethtool -k "${DEV}" | grep -q "${pattern}" || die "rxhash must be enabled"
/tools/memory-model/litmus-tests/
DLB+poonceonces.litmus6 * Can the counter-intuitive outcome for the load-buffering pattern
DMP+pooncerelease+poacquireonce.litmus8 * pattern.
DSB+poonceonces.litmus7 * to order the store-buffering pattern, where each process writes to the
DMP+fencewmbonceonce+fencermbonceonce.litmus7 * sufficient ordering for the message-passing pattern. However, it
DSB+fencembonceonces.litmus7 * order the store-buffering pattern, where each process writes to the
DWRC+poonceonces+Once.litmus6 * This litmus test is an extension of the message-passing pattern,
DWRC+pooncerelease+fencermbonceonce+Once.litmus6 * This litmus test is an extension of the message-passing pattern, where
DLB+fencembonceonce+ctrlonceonce.litmus7 * the load-buffering pattern, in other words, preventing all processes
/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-coalesce.sh10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
Dethtool-ring.sh11 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[\t ]/, "", $2); print $2}')
/tools/testing/selftests/vm/
Dsplit_huge_page_test.c118 static bool check_for_pattern(FILE *fp, const char *pattern, char *buf) in check_for_pattern() argument
121 if (!strncmp(buf, pattern, strlen(pattern))) in check_for_pattern()
/tools/testing/selftests/tc-testing/creating-testcases/
DAddingTestCases.txt23 when defining the match pattern. Refer to the supplied json test files
24 for examples when in doubt. The match pattern is written in json, and
25 will be used by python. So the match pattern will be a python regular
59 verifyCmd to prove the command under test succeeded. This pattern
/tools/perf/util/
Dparse-events.y295 char *pattern = NULL; variable
303 free(pattern); \
320 if (asprintf(&pattern, "%s*", $1) < 0)
329 if (!perf_pmu__match(pattern, name, $1) ||
330 !perf_pmu__match(pattern, pmu->alias_name, $1)) {
344 free(pattern);
/tools/usb/
Dffs-test.c497 enum pattern { PAT_ZERO, PAT_SEQ, PAT_PIPE }; enum
498 static enum pattern pattern; variable
508 switch (pattern) { in fill_in_buf()
535 switch (pattern) { in empty_out_buf()
/tools/perf/scripts/python/
Dexported-sql-viewer.py385 self.pattern = QCheckBox("Regular Expression")
387 self.pattern = QCheckBox("Pattern")
388 self.pattern.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
408 self.hbox.addWidget(self.pattern)
430 self.pattern.hide()
438 self.pattern.show()
444 pattern = self.pattern.isChecked()
446 self.last_pattern = pattern
447 self.finder.Find(value, direction, pattern, self.context)
451 pattern = self.pattern.isChecked()
[all …]
/tools/lib/bpf/
Dlibbpf_probes.c20 static bool grep(const char *buffer, const char *pattern) in grep() argument
22 return !!strstr(buffer, pattern); in grep()

12