Home
last modified time | relevance | path

Searched refs:seen (Results 1 – 25 of 204) sorted by relevance

123456789

/linux/tools/testing/selftests/
H A Dkselftest_harness.h521 #define ASSERT_EQ(expected, seen) \ argument
522 __EXPECT(expected, #expected, seen, #seen, ==, 1)
532 #define ASSERT_NE(expected, seen) \ argument
533 __EXPECT(expected, #expected, seen, #seen, !=, 1)
543 #define ASSERT_LT(expected, seen) \ argument
544 __EXPECT(expected, #expected, seen, #seen, <, 1)
554 #define ASSERT_LE(expected, seen) \ argument
555 __EXPECT(expected, #expected, seen, #seen, <=, 1)
565 #define ASSERT_GT(expected, seen) \ argument
566 __EXPECT(expected, #expected, seen, #seen, >, 1)
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Diters_task_vma.c22 unsigned int seen = 0; in iter_task_vma_for_each() local
31 if (bpf_cmp_unlikely(seen, >=, 1000)) in iter_task_vma_for_each()
34 vm_ranges[seen].vm_start = vma->vm_start; in iter_task_vma_for_each()
35 vm_ranges[seen].vm_end = vma->vm_end; in iter_task_vma_for_each()
36 seen++; in iter_task_vma_for_each()
39 vmas_seen = seen; in iter_task_vma_for_each()
/linux/tools/testing/selftests/net/
H A Drtnetlink.py165 seen = {}
172 seen[key] = attrs
173 if len(seen) == len(want):
175 return seen
237 seen = {}
244 seen.update(_collect_route_ntfs(rtnl, 'newroute-ntf',
245 want - set(seen.keys()), deadline=2))
246 if len(seen) == len(want):
248 return seen
279 seen = _ra_advertise_routes(rtnl, sock, ifindex, routes,
[all …]
/linux/tools/testing/selftests/filesystems/
H A Dfclog.c16 #define ASSERT_ERRNO(expected, _t, seen) \ argument
18 ({__typeof__(seen) _tmp_seen = (seen); \
19 _tmp_seen >= 0 ? _tmp_seen : -errno; }), #seen, _t, 1)
21 #define ASSERT_ERRNO_EQ(expected, seen) \ argument
22 ASSERT_ERRNO(expected, ==, seen)
24 #define ASSERT_SUCCESS(seen) \ argument
25 ASSERT_ERRNO(0, <=, seen)
/linux/net/netfilter/
H A Dnf_conntrack_proto_tcp.c560 struct ip_ct_tcp_state *sender = &state->seen[dir]; in tcp_in_window()
561 struct ip_ct_tcp_state *receiver = &state->seen[!dir]; in tcp_in_window()
897 ct->proto.tcp.seen[0].td_end = in tcp_new()
900 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window); in tcp_new()
901 if (ct->proto.tcp.seen[0].td_maxwin == 0) in tcp_new()
902 ct->proto.tcp.seen[0].td_maxwin = 1; in tcp_new()
903 ct->proto.tcp.seen[0].td_maxend = in tcp_new()
904 ct->proto.tcp.seen[0].td_end; in tcp_new()
906 tcp_options(skb, dataoff, th, &ct->proto.tcp.seen[0]); in tcp_new()
917 ct->proto.tcp.seen[0].td_end = in tcp_new()
[all …]
/linux/tools/testing/selftests/proc/
H A Dproc-pidns.c22 #define ASSERT_ERRNO(expected, _t, seen) \
24 ({__typeof__(seen) _tmp_seen = (seen); \
25 _tmp_seen >= 0 ? _tmp_seen : -errno; }), #seen, _t, 1)
27 #define ASSERT_ERRNO_EQ(expected, seen) \
28 ASSERT_ERRNO(expected, ==, seen)
30 #define ASSERT_SUCCESS(seen) \
31 ASSERT_ERRNO(0, <=, seen)
21 ASSERT_ERRNO(expected,_t,seen) global() argument
26 ASSERT_ERRNO_EQ(expected,seen) global() argument
29 ASSERT_SUCCESS(seen) global() argument
/linux/drivers/dma-buf/
H A Dst-dma-fence.c91 bool seen; member
96 smp_store_mb(container_of(cb, struct simple_cb, cb)->seen, true); in simple_callback()
113 if (!cb.seen) { in test_add_callback()
140 if (cb.seen) { in test_late_add_callback()
168 if (cb.seen) { in test_rm_callback()
191 if (!cb.seen) { in test_late_rm_callback()
396 smp_store_mb(cb.seen, false); in thread_signal_callback()
400 cb.seen = true; in thread_signal_callback()
406 if (!cb.seen) { in thread_signal_callback()
411 if (!READ_ONCE(cb.seen)) { in thread_signal_callback()
/linux/drivers/of/
H A Ddevice.c219 int seen = 0; in of_device_uevent() local
234 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
235 seen++; in of_device_uevent()
237 add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in of_device_uevent()
239 seen = 0; in of_device_uevent()
243 add_uevent_var(env, "OF_ALIAS_%d=%s", seen, in of_device_uevent()
245 seen++; in of_device_uevent()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dkmem_cache_iter.c38 int seen = 0; in subtest_kmem_cache_iter_check_slabinfo() local
55 int ret = bpf_map_lookup_elem(map_fd, &seen, &r); in subtest_kmem_cache_iter_check_slabinfo()
64 seen++; in subtest_kmem_cache_iter_check_slabinfo()
67 ASSERT_EQ(skel->bss->kmem_cache_seen, seen, "kmem_cache_seen_eq"); in subtest_kmem_cache_iter_check_slabinfo()
H A Diters.c111 unsigned int seen; in subtest_task_vma_iters() local
135 seen = 0; in subtest_task_vma_iters()
144 bpf_iter_start = skel->bss->vm_ranges[seen].vm_start; in subtest_task_vma_iters()
145 bpf_iter_end = skel->bss->vm_ranges[seen].vm_end; in subtest_task_vma_iters()
149 seen++; in subtest_task_vma_iters()
152 if (!ASSERT_EQ(skel->bss->vmas_seen, seen, "vmas_seen_eq")) in subtest_task_vma_iters()
/linux/net/bridge/
H A Dbr_mst.c248 DECLARE_BITMAP(seen, VLAN_N_VID) = { 0 }; in br_mst_info_size()
256 if (test_bit(v->brvlan->msti, seen)) in br_mst_info_size()
266 __set_bit(v->brvlan->msti, seen); in br_mst_info_size()
275 DECLARE_BITMAP(seen, VLAN_N_VID) = { 0 }; in br_mst_fill_info()
281 if (test_bit(v->brvlan->msti, seen)) in br_mst_fill_info()
293 __set_bit(v->brvlan->msti, seen); in br_mst_fill_info()
/linux/drivers/zorro/
H A Dnames.c22 unsigned short seen; member
93 int nr = prod_p->seen + 1; in zorro_name_device()
94 prod_p->seen = nr; in zorro_name_device()
/linux/sound/aoa/soundbus/
H A Dcore.c66 int cplen, seen = 0; in soundbus_uevent() local
93 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
98 seen += 1; in soundbus_uevent()
101 retval = add_uevent_var(env, "OF_COMPATIBLE_N=%d", seen); in soundbus_uevent()
/linux/arch/sparc/net/
H A Dbpf_jit_comp_32.c139 seen |= SEEN_XREG; \
329 u32 temp[8], *prog, *func, seen = 0, pass; in bpf_jit_compile() local
352 u8 seen_or_pass0 = (pass == 0) ? (SEEN_XREG | SEEN_DATAREF | SEEN_MEM) : seen; in bpf_jit_compile()
513 seen |= SEEN_XREG; in bpf_jit_compile()
517 seen |= SEEN_XREG; in bpf_jit_compile()
577 seen |= SEEN_MEM; in bpf_jit_compile()
581 seen |= SEEN_MEM | SEEN_XREG; in bpf_jit_compile()
585 seen |= SEEN_MEM; in bpf_jit_compile()
589 seen |= SEEN_MEM | SEEN_XREG; in bpf_jit_compile()
598 common_load: seen |= SEEN_DATAREF; in bpf_jit_compile()
[all …]
/linux/tools/testing/selftests/x86/
H A Dint_signal.c101 static volatile sig_atomic_t seen, signo, trap, error, ip_offset, flags; variable
111 if (seen && single_step && sig == SIGTRAP) { in handler()
124 if (seen || ip < start || ip > end) { in handler()
138 seen = 1; in handler()
283 seen = signo = trap = error = ip_offset = flags = 0; in main()
291 ok = seen && signo == active->signo && trap == active->trap && in main()
/linux/tools/testing/selftests/kselftest_harness/
H A Dharness-selftest.sh11 "$DIR"/harness-selftest > harness-selftest.seen || true
13 diff -u "$DIR"/harness-selftest.expected harness-selftest.seen
/linux/arch/powerpc/net/
H A Dbpf_jit.h170 unsigned int seen; member
199 return ctx->seen & (1 << (31 - i)); in bpf_is_seen_register()
204 ctx->seen |= 1 << (31 - i); in bpf_set_seen_register()
209 ctx->seen &= ~(1 << (31 - i)); in bpf_clear_seen_register()
/linux/crypto/asymmetric_keys/
H A Dpkcs7_trust.c39 if (x509->seen) { in pkcs7_validate_trust_one()
45 x509->seen = true; in pkcs7_validate_trust_one()
167 p->seen = false; in pkcs7_validate_trust()
/linux/tools/testing/selftests/lkdtm/
H A Dstack-entropy.sh39 seen=$(tac "$log" | grep -m1 -B"$samples"0 'Starting stack offset' | \
41 bits=$(echo "obase=2; $seen" | bc | wc -L)
/linux/fs/xfs/scrub/
H A Drefcount.c98 xfs_nlink_t seen; member
137 refchk->seen++; in xchk_refcountbt_rmap_check()
175 target_nr = refchk->refcount - refchk->seen; in xchk_refcountbt_process_rmap_fragments()
269 refchk->seen = refchk->refcount; in xchk_refcountbt_process_rmap_fragments()
293 .seen = 0, in xchk_refcountbt_xref_rmap()
317 if (irec->rc_refcount != refchk.seen) { in xchk_refcountbt_xref_rmap()
318 trace_xchk_refcount_incorrect(sc->sa.pag, irec, refchk.seen); in xchk_refcountbt_xref_rmap()
H A Drtrefcount.c113 xfs_nlink_t seen; member
152 refchk->seen++; in xchk_rtrefcountbt_rmap_check()
190 target_nr = refchk->refcount - refchk->seen; in xchk_rtrefcountbt_process_rmap_fragments()
284 refchk->seen = refchk->refcount; in xchk_rtrefcountbt_process_rmap_fragments()
308 .seen = 0, in xchk_rtrefcountbt_xref_rmap()
332 if (irec->rc_refcount != refchk.seen) in xchk_rtrefcountbt_xref_rmap()
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-pci-devices-aer5 statistical counters indicate the errors "as seen/reported by the device".
8 errors may be "seen" / reported by the link partner and not the
16 Description: List of correctable errors seen and reported by this
37 Description: List of uncorrectable fatal errors seen and reported by this
67 Description: List of uncorrectable nonfatal errors seen and reported by this
99 (internally) the ERR_* messages for errors seen by the internal rootport PCI
/linux/Documentation/hwmon/
H A Ddrivetemp.rst37 This has been observed with WD120EFAX drives, but may be seen with other
68 temp1_lowest Minimum temperature seen this power cycle
69 temp1_highest Maximum temperature seen this power cycle
/linux/scripts/
H A Dcheck-sysctl-docs57 seen[entry]++
171 if (!seen[entry])
/linux/tools/testing/selftests/bpf/libarena/selftests/
H A Dtest_parallel_spmc.bpf.c28 static u64 __arena seen[TEST_SPMC_MAX_VALUES]; variable
134 seen[i] = 0; in spmc_common_init()
210 if (__sync_fetch_and_add(&seen[val], 1) != 0) { in spmc_update_stats()
252 if (seen[i % TEST_SPMC_MAX_VALUES] != 1) in spmc_validate_all_seen()

123456789