/linux-master/mm/ |
H A D | shmem.c | 477 * Replace item expected in xarray by a new item, while holding xa_lock. 480 pgoff_t index, void *expected, void *replacement) 485 VM_BUG_ON(!expected); 488 if (item != expected) 759 * Somewhat like filemap_add_folio, but error if expected item has gone. 763 pgoff_t index, void *expected, gfp_t gfp) 771 VM_BUG_ON(expected && folio_test_large(folio)); 782 if (expected != xas_find_conflict(&xas)) { 786 if (expected && xas_find_conflict(&xas)) { 479 shmem_replace_entry(struct address_space *mapping, pgoff_t index, void *expected, void *replacement) argument 761 shmem_add_to_page_cache(struct folio *folio, struct address_space *mapping, pgoff_t index, void *expected, gfp_t gfp) argument
|
/linux-master/net/ipv4/ |
H A D | tcp_ipv4.c | 3031 unsigned int expected = 1; local 3044 expected++; 3049 return expected; 3059 unsigned int expected = 1; local 3072 expected++; 3077 return expected; 3085 unsigned int expected; local 3115 expected = bpf_iter_tcp_listening_batch(seq, sk); 3117 expected = bpf_iter_tcp_established_batch(seq, sk); 3119 if (iter->end_sk == expected) { [all...] |
/linux-master/net/smc/ |
H A D | smc_core.c | 125 enum smc_link_state expected = first ? SMC_LNK_ACTIVATING : local 134 if (lnk->state != expected || lnk->link_is_asym) 145 if (lnk2->state == expected &&
|
/linux-master/net/unix/ |
H A D | af_unix.c | 3426 unsigned int expected = 1; local 3438 expected++; 3443 return expected; 3474 unsigned int expected; local 3490 expected = bpf_iter_unix_hold_batch(seq, sk); 3492 if (iter->end_sk == expected) { 3497 if (!resized && !bpf_iter_unix_realloc_batch(iter, expected * 3 / 2)) {
|
/linux-master/scripts/dtc/ |
H A D | checks.c | 898 FAIL_PROP(c, dti, node, prop, "PCI bus number %d out of range, expected (%d - %d)", 941 FAIL(c, dti, node, "PCI unit address format error, expected \"%s\"", 1009 FAIL(c, dti, node, "simple-bus unit address format error, expected \"%s\"", 1073 FAIL(c, dti, node, "I2C bus unit address format error, expected \"%s\"", 1162 FAIL(c, dti, node, "SPI bus unit address format error, expected \"%s\"", 1395 "property size (%d) is invalid, expected multiple of %zu", 1404 unsigned int expected; local 1454 expected = (cell + cellsize + 1) * sizeof(cell_t); 1455 if ((expected <= cell) || prop->val.len < expected) { [all...] |
/linux-master/scripts/kconfig/tests/ |
H A D | conftest.py | 228 def _read_and_compare(self, compare, expected): 232 expected: file that contains the expected data 234 with open(os.path.join(self._test_dir, expected)) as f: 238 def _contains(self, attr, expected): 241 expected) 243 def _matches(self, attr, expected): 245 expected) 247 def config_contains(self, expected): 248 """Check if resulted configuration contains expected dat [all...] |
/linux-master/scripts/ |
H A D | rust_is_available_test.py | 7 under their canonical name (and with the expected versions). 98 def run_script(self, expected, override_env): 116 if expected == self.Expected.SUCCESS: 121 elif expected == self.Expected.SUCCESS_WITH_EXTRA_OUTPUT: 128 elif expected == self.Expected.SUCCESS_WITH_WARNINGS: 249 self.assertIn("bindings generator) did not return an expected output. See output", result.stderr)
|
/linux-master/sound/isa/ |
H A D | es18xx.c | 317 int old, expected, new; local 322 expected = old ^ mask; 323 outb(expected, chip->port + 0x05); 328 reg, old, expected, new); 330 return expected == new;
|
/linux-master/sound/soc/codecs/ |
H A D | wm8962.c | 1908 int expected = (WM8962_DCS_STARTUP_DONE_HP1L | local 1943 } while (++timeout < 200 && (reg & expected) != expected); 1945 if ((reg & expected) != expected)
|
/linux-master/tools/bpf/bpftool/ |
H A D | main.c | 341 p_err("expected 'file', got: %s", *argv);
|
/linux-master/tools/bpf/resolve_btfids/ |
H A D | main.c | 7 * Each symbol points to 4 bytes data and is expected to have 307 int expected = gelf_getclass(elf) == ELFCLASS32 ? 4 : 8; local 312 if (sh->sh_addralign == expected) 315 pr_debug2(" - fixing wrong alignment sh_addralign %u, expected %u\n", 316 sh->sh_addralign, expected); 318 sh->sh_addralign = expected;
|
/linux-master/tools/lib/perf/tests/ |
H A D | test-evlist.c | 424 long long expected) 428 error = (((double)average - expected) / expected) * 100.0; 430 __T_VERBOSE(" Expected: %lld\n", expected); 421 display_error(long long average, long long high, long long low, long long expected) argument
|
/linux-master/tools/memory-model/scripts/ |
H A D | checkalllitmus.sh | 63 echo All litmus tests verified as was expected. 1>&2
|
H A D | checktheselitmus.sh | 41 echo All litmus tests verified as was expected. 1>&2
|
/linux-master/tools/perf/dlfilters/ |
H A D | dlfilter-test-api-v0.c | 181 if (sample->x != expected.x) \ 182 return test_fail("'" #x "' not expected value\n"); \ 187 struct perf_dlfilter_sample expected = { local
|
H A D | dlfilter-test-api-v2.c | 196 if (sample->x != expected.x) \ 197 return test_fail("'" #x "' not expected value\n"); \ 202 struct perf_dlfilter_sample expected = { local
|
/linux-master/tools/perf/tests/ |
H A D | api-io.c | 19 #define EXPECT_EQUAL(val, expected) \ 21 if (val != expected) { \ 23 __FILE__, __LINE__, val, expected); \ 28 #define EXPECT_EQUAL64(val, expected) \ 30 if (val != expected) { \ 32 __FILE__, __LINE__, val, expected); \
|
H A D | cpumap.c | 174 static int __test__cpu_map_intersect(const char *lhs, const char *rhs, int nr, const char *expected) argument 183 TEST_ASSERT_VAL("failed to intersect map: bad result", !strcmp(buf, expected));
|
H A D | hists_cumulate.c | 190 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, argument 223 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && 224 !strcmp(COMM(he), expected[i].comm) && 225 !strcmp(DSO(he), expected[i].dso) && 226 !strcmp(SYM(he), expected[i].sym)); 229 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); 237 TEST_ASSERT_VAL("callchains expected", !RB_EMPTY_ROOT(root)); 268 * expected output: 282 struct result expected[] = { local 305 err = do_test(hists, expected, ARRAY_SIZ 380 struct result expected[] = { local 484 struct result expected[] = { local 604 struct result expected[] = { local [all...] |
H A D | openat-syscall-all-cpus.c | 96 unsigned int expected; local 107 expected = nr_openat_calls + idx; 108 if (perf_counts(evsel->counts, idx, 0)->val != expected) { 109 pr_debug("evsel__read_on_cpu: expected to intercept %d calls on cpu %d, got %" PRIu64 "\n", 110 expected, cpu.cpu, perf_counts(evsel->counts, idx, 0)->val);
|
H A D | tests.h | 21 #define TEST_ASSERT_EQUAL(text, val, expected) \ 23 if (val != expected) { \ 25 __FILE__, __LINE__, text, val, expected); \
|
H A D | time-utils-test.c | 12 static bool test__parse_nsec_time(const char *str, u64 expected) argument 25 if (ptime != expected) { 26 pr_debug("Failed. ptime %" PRIu64 " expected %" PRIu64 "\n", 27 ptime, expected); 96 pr_debug("bad size: range_size %d range_num %d expected num %d\n", 104 pr_debug("bad range %d expected %" PRIu64 " to %" PRIu64 "\n",
|
H A D | util.c | 10 const char *replace, const char *expected) 13 int ret = strcmp(new, expected); 9 test_strreplace(char needle, const char *haystack, const char *replace, const char *expected) argument
|
/linux-master/tools/perf/tests/shell/lib/ |
H A D | perf_metric_validation.py | 23 \tbut expected value range is [{3}, {4}]\n\ 32 \tbut expected value range is [{3}, {4}]"\
|
/linux-master/tools/perf/tests/shell/ |
H A D | record+probe_libc_inet_pton.sh | 36 expected=`mktemp -u /tmp/expected.XXX` 38 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected 39 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 43 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected 44 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected 48 # Add gaih_inet to expected backtrace only if it is part of libc. 50 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected 53 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected [all...] |