Home
last modified time | relevance | path

Searched refs:before (Results 1 – 25 of 1301) sorted by relevance

12345678910>>...53

/linux/tools/perf/pmu-events/
H A Dmetric_test.py43 before = '(a + b + c + d) / (2 * e)'
44 after = before
45 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after)
49 before = r'topdown\-fe\-bound / topdown\-slots - 1'
50 after = before
51 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after)
55 before = r'arb@event\=0x81\,umask\=0x1@ + arb@event\=0x84\,umask\=0x1@'
56 after = before
57 self.assertEqual(ParsePerfJson(before).ToPerfJson(), after)
60 before = r'a + 1e12 + b'
[all …]
/linux/tools/perf/util/bpf_skel/
H A Dbpf_prog_profiler.bpf.c55 struct bpf_perf_event_value *before, diff; in fexit_update_maps() local
58 before = bpf_map_lookup_elem(&fentry_readings, &zero); in fexit_update_maps()
60 if (before && before->counter) { in fexit_update_maps()
63 diff.counter = after->counter - before->counter; in fexit_update_maps()
64 diff.enabled = after->enabled - before->enabled; in fexit_update_maps()
65 diff.running = after->running - before->running; in fexit_update_maps()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Duprobe_syscall.c26 __naked void uretprobe_regs(struct pt_regs *before, struct pt_regs *after) in uretprobe_regs() argument
98 struct pt_regs before = {}, after = {}; in test_uretprobe_regs_equal() local
99 unsigned long *pb = (unsigned long *) &before; in test_uretprobe_regs_equal()
113 uretprobe_regs(&before, &after); in test_uretprobe_regs_equal()
116 cnt = sizeof(before)/sizeof(*pb); in test_uretprobe_regs_equal()
180 struct pt_regs before = {}, after = {}; in test_uretprobe_regs_change() local
181 unsigned long *pb = (unsigned long *) &before; in test_uretprobe_regs_change()
183 unsigned long cnt = sizeof(before)/sizeof(*pb); in test_uretprobe_regs_change()
192 uretprobe_regs(&before, &after); in test_uretprobe_regs_change()
H A Duprobe_multi_test.c834 unsigned long before, unsigned long after, in uprobe_consumer_test() argument
841 if (test_bit(idx, before) && !test_bit(idx, after)) in uprobe_consumer_test()
847 if (!test_bit(idx, before) && test_bit(idx, after)) { in uprobe_consumer_test()
864 noinline int func(struct uprobe_multi_consumers *skel, unsigned long before, \
867 return uprobe_consumer_test(skel, before, after, offset); \
883 unsigned long before, unsigned long after, in consumer_test() argument
888 printf("consumer_test before %lu after %lu\n", before, after); in consumer_test()
892 if (test_bit(idx, before)) { in consumer_test()
898 err = test(skel, before, after, offset); in consumer_test()
913 if (test_bit(idx, before)) in consumer_test()
[all …]
/linux/tools/bpf/bpftool/skeleton/
H A Dprofiler.bpf.c79 struct bpf_perf_event_value___local *before, diff; in fexit_update_maps() local
81 before = bpf_map_lookup_elem(&fentry_readings, &id); in fexit_update_maps()
83 if (before && before->counter) { in fexit_update_maps()
86 diff.counter = after->counter - before->counter; in fexit_update_maps()
87 diff.enabled = after->enabled - before->enabled; in fexit_update_maps()
88 diff.running = after->running - before->running; in fexit_update_maps()
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c407 struct tcp_ao_counters *before, in __test_tcp_ao_counters_cmp() argument
413 if (before->cnt > after->cnt) { \ in __test_tcp_ao_counters_cmp()
415 tst_name ?: "", before->cnt, after->cnt); \ in __test_tcp_ao_counters_cmp()
418 if ((before->cnt != after->cnt) != (expecting_inc)) { \ in __test_tcp_ao_counters_cmp()
421 before->cnt, after->cnt); \ in __test_tcp_ao_counters_cmp()
448 struct tcp_ao_counters *before, in test_tcp_ao_key_counters_cmp() argument
456 if (before->key_cnts[i].cnt > after->key_cnts[i].cnt) { \ in test_tcp_ao_key_counters_cmp()
458 tst_name ?: "", before->key_cnts[i].cnt, \ in test_tcp_ao_key_counters_cmp()
460 before->key_cnts[i].sndid, \ in test_tcp_ao_key_counters_cmp()
461 before->key_cnts[i].rcvid); \ in test_tcp_ao_key_counters_cmp()
[all …]
/linux/Documentation/virt/kvm/x86/
H A Dcpuid.rst11 mask-out some, or even all KVM-related cpuid features before launching
66 before enabling paravirtualized
70 before enabling paravirtualized
78 before enabling paravirtualized
86 before using paravirtualized
90 before using the second async
96 before using extended destination
99 KVM_FEATURE_HC_MAP_GPA_RANGE 16 guest checks this feature bit before
103 KVM_FEATURE_MIGRATION_CONTROL 17 guest checks this feature bit before
/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c334 struct signatures before; in TEST()
339 sign_specific(&before, ARBITRARY_VALUE); in TEST()
347 ASSERT_EQ(before.keyia, after.keyia) TH_LOG("keyia changed after context switching"); in TEST()
348 ASSERT_EQ(before.keyib, after.keyib) TH_LOG("keyib changed after context switching"); in TEST()
349 ASSERT_EQ(before.keyda, after.keyda) TH_LOG("keyda changed after context switching");
350 ASSERT_EQ(before.keydb, after.keydb) TH_LOG("keydb changed after context switching"); in TEST()
357 size_t before; in TEST()
362 before = keyg_sign(ARBITRARY_VALUE); in TEST()
370 ASSERT_EQ(before, after) TH_LOG("keyg changed after context switching");
331 struct signatures before; TEST() local
354 size_t before; TEST() local
/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dpmae_handling_test.c29 static uint64_t before, after; variable
44 before = mfspr(SPRN_MMCR0); in syscall_ebb_callee()
50 if (before != after) in syscall_ebb_callee()
88 printf("Saw MMCR0 before 0x%lx after 0x%lx\n", before, after); in test_body()
/linux/drivers/misc/lkdtm/
H A Dfortify.c70 int before[10]; in lkdtm_FORTIFY_MEM_OBJECT() local
83 memset(before, 0, sizeof(before)); in lkdtm_FORTIFY_MEM_OBJECT()
85 fortify_scratch_space = before[5]; in lkdtm_FORTIFY_MEM_OBJECT()
93 memcpy(&target, &before, size); in lkdtm_FORTIFY_MEM_OBJECT()
/linux/tools/testing/selftests/mm/
H A Dthuge-gen.c117 unsigned long before, after; in test_mmap() local
119 before = read_free(size); in test_mmap()
129 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_mmap()
139 unsigned long before, after; in test_shmget() local
143 before = read_free(size); in test_shmget()
167 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_shmget()
/linux/tools/memory-model/Documentation/
H A Dexplanation.txt150 private variables before using them. All that is beside the point;
163 instance, P1 might run entirely before P0 begins, in which case r1 and
164 r2 will both be 0 at the end. Or P0 might run entirely before P1
169 store to buf but before the store to flag. In this case, r1 and r2
197 Since r1 = 1, P0 must store 1 to flag before P1 loads 1 from
200 P1 loads from flag before loading from buf, since CPUs execute
203 P1 must load 0 from buf before P0 stores 1 to it; otherwise r2
207 P0 stores 1 to buf before storing 1 to flag, since it executes
211 execute before itself, the specified outcome is impossible.
266 It's not possible to have X ordered before Y, Y ordered before Z, and
[all …]
/linux/tools/testing/selftests/damon/
H A Ddebugfs_target_ids_pid_leak.sh4 before=$(grep "^pid " /proc/slabinfo | awk '{print $2}')
7 expected_after_max=$((before + nr_leaks / 2))
14 echo "number of active pid slabs: $before -> $after"
/linux/net/netfilter/ipset/
H A Dip_set_list_set.c36 int before; member
203 if (d->before == 0) { in list_set_utest()
206 } else if (d->before > 0) { in list_set_utest()
252 else if (d->before == 0 || e->id != d->refid) in list_set_uadd()
254 else if (d->before > 0) in list_set_uadd()
261 if ((d->before > 0 && !next) || in list_set_uadd()
262 (d->before < 0 && !prev)) in list_set_uadd()
278 if (d->before == 0) { in list_set_uadd()
282 } else if (d->before > 0) { in list_set_uadd()
334 if (d->before > 0) { in list_set_udel()
[all …]
/linux/tools/testing/selftests/intel_pstate/
H A Daperf.c29 struct timespec before, after; in main() local
62 if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) { in main()
86 start = before.tv_sec*MSEC_PER_SEC + before.tv_nsec/NSEC_PER_MSEC; in main()
/linux/arch/powerpc/lib/
H A Drheap.c154 rh_block_t *before; in attach_free_block() local
168 before = NULL; in attach_free_block()
182 before = blk; in attach_free_block()
188 if (before != NULL && after != NULL) in attach_free_block()
193 if (before && s != (before->start + before->size)) in attach_free_block()
194 before = NULL; in attach_free_block()
200 if (before == NULL && after == NULL) { in attach_free_block()
214 if (before != NULL && after == NULL) { in attach_free_block()
215 before->size += size; in attach_free_block()
220 if (before == NULL && after != NULL) { in attach_free_block()
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-transport-srp13 layer error has been observed before removing a target port.
22 layer error has been observed before failing I/O. Zero means
38 attempt failed before retrying. Setting this attribute to
55 after the fast_io_fail_tmo timer has fired and before the
57 "dev_loss_tmo" timer has fired and before the port is finally
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-waiting_for_supplier12 before the device can probe.
15 to be added before it can probe. A value of 1 means the device
16 is waiting for one or more suppliers to be added before it can
H A Ddebugfs-driver-genwqe33 Description: Dump of the error registers before the last reset of
40 Description: Internal chip state of UID0 before card was reset.
46 Description: Internal chip state of UID1 before card was reset.
52 Description: Internal chip state of UID2 before card was reset.
76 The driver ensures that the settings are done just before
/linux/drivers/soc/fsl/qbman/
H A Dqman_ccsr.c625 u32 before, after; in __qman_liodn_fixup() local
629 before = qm_ccsr_in(REG_REV3_QCSP_LIO_CFG(idx)); in __qman_liodn_fixup()
631 before = qm_ccsr_in(REG_QCSP_LIO_CFG(idx)); in __qman_liodn_fixup()
633 liodn_offset = before & LIO_CFG_LIODN_MASK; in __qman_liodn_fixup()
637 after = (before & (~LIO_CFG_LIODN_MASK)) | liodn_offset; in __qman_liodn_fixup()
648 u32 before, after; in qman_set_sdest() local
651 before = qm_ccsr_in(REG_REV3_QCSP_IO_CFG(idx)); in qman_set_sdest()
654 after = (before & (~IO_CFG_SDEST_MASK)) | (cpu_idx << 16); in qman_set_sdest()
657 before = qm_ccsr_in(REG_QCSP_IO_CFG(idx)); in qman_set_sdest()
658 after = (before & (~IO_CFG_SDEST_MASK)) | (cpu_idx << 16); in qman_set_sdest()
/linux/tools/testing/selftests/user_events/
H A Dftrace_test.c310 int before = 0, after = 0; in TEST_F() local
353 before = trace_bytes(); in TEST_F()
356 ASSERT_GT(after, before); in TEST_F()
367 int before = 0, after = 0; in TEST_F() local
391 before = trace_bytes(); in TEST_F()
394 ASSERT_GT(after, before); in TEST_F()
439 int before = 0, after = 0; in TEST_F() local
472 before = trace_bytes(); in TEST_F()
476 ASSERT_GT(after, before); in TEST_F()
/linux/Documentation/nvdimm/
H A Dmaintainer-entry-profile.rst25 before submitting, but it is not required.
32 Those tests need to be passed before the patches go upstream, but not
33 necessarily before initial posting. Contact the list if you need help
49 next merge window they should be sent before -rc4, and ideally
57 In general, please wait up to one week before pinging for feedback. A
/linux/sound/firewire/tascam/
H A Damdtp-tascam.c138 __be32 before; in read_status_messages() local
142 before = tscm->state[index]; in read_status_messages()
157 if ((before ^ after) & mask) { in read_status_messages()
164 entry->before = before; in read_status_messages()
/linux/scripts/coccinelle/free/
H A Difnulldev_put.cocci3 /// NULL check before dev_{put, hold} functions is not needed.
48 cocci.print_main("NULL check before dev_{put, hold} functions is not needed", p)
54 msg = "WARNING: NULL check before dev_{put, hold} functions is not needed."
H A Difnullfree.cocci2 /// NULL check before some freeing functions is not needed.
60 cocci.print_main("NULL check before that freeing function is not needed", p)
66 msg = "WARNING: NULL check before some freeing functions is not needed."

12345678910>>...53