| /linux/tools/perf/pmu-events/ |
| H A D | metric_test.py | 43 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 D | bpf_prog_profiler.bpf.c | 55 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/kvm/arm64/ |
| H A D | host_sve.c | 49 unsigned long before, after; in do_sve_roundtrip() local 62 : [before] "=r" (before), in do_sve_roundtrip() 68 if (before != after) { in do_sve_roundtrip() 70 before, after); in do_sve_roundtrip() 73 before, after); in do_sve_roundtrip()
|
| /linux/tools/testing/selftests/kselftest_harness/ |
| H A D | harness-selftest.expected | 5 # harness-selftest.c:19:standalone_pass:before 10 # harness-selftest.c:27:standalone_fail:before 17 # harness-selftest.c:35:signal_pass:before 22 # harness-selftest.c:42:signal_fail:before 29 # harness-selftest.c:62:pass:before 30 # harness-selftest.c:19:pass:before 38 # harness-selftest.c:70:fail:before 46 # harness-selftest.c:77:timeout:before 52 # harness-selftest.c:96:pass:before
|
| /linux/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | sock.c | 482 test_cnt test_cmp_counters(struct tcp_counters *before, in test_cmp_counters() argument 487 if (before->cnt > after->cnt) \ in test_cmp_counters() 489 if (before->cnt != after->cnt) \ in test_cmp_counters() 496 if (before->ao.nr_keys != after->ao.nr_keys) in test_cmp_counters() 501 i = before->ao.nr_keys; in test_cmp_counters() 511 struct tcp_counters *before, in test_assert_counters_sk() argument 517 if (before->cnt > after->cnt) { \ in test_assert_counters_sk() 519 tst_name ?: "", before->cnt, after->cnt); \ in test_assert_counters_sk() 522 if ((before->cnt != after->cnt) != !!(expected & e_cnt)) { \ in test_assert_counters_sk() 525 before->cnt, after->cnt); \ in test_assert_counters_sk() [all …]
|
| /linux/tools/bpf/bpftool/skeleton/ |
| H A D | profiler.bpf.c | 79 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/Documentation/virt/kvm/x86/ |
| H A D | cpuid.rst | 11 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 D | pac.c | 334 struct signatures before; in TEST() local 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"); in TEST() 350 ASSERT_EQ(before.keydb, after.keydb) TH_LOG("keydb changed after context switching"); in TEST() 357 size_t before; in TEST() local 362 before = keyg_sign(ARBITRARY_VALUE); in TEST() 370 ASSERT_EQ(before, after) TH_LOG("keyg changed after context switching"); in TEST()
|
| /linux/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | pmae_handling_test.c | 29 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/tools/testing/selftests/mm/ |
| H A D | thuge-gen.c | 97 unsigned long before, after; in test_mmap() local 99 before = read_free(size); in test_mmap() 109 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_mmap() 119 unsigned long before, after; in test_shmget() local 123 before = read_free(size); in test_shmget() 147 ksft_test_result(size == getpagesize() || (before - after) == NUM_PAGES, in test_shmget()
|
| /linux/drivers/misc/lkdtm/ |
| H A D | fortify.c | 73 int before[10]; in lkdtm_FORTIFY_MEM_OBJECT() local 86 memset(before, 0, sizeof(before)); in lkdtm_FORTIFY_MEM_OBJECT() 88 fortify_scratch_space = before[5]; in lkdtm_FORTIFY_MEM_OBJECT() 96 memcpy(&target, &before, size); in lkdtm_FORTIFY_MEM_OBJECT()
|
| /linux/tools/memory-model/Documentation/ |
| H A D | explanation.txt | 150 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/intel_pstate/ |
| H A D | aperf.c | 29 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/net/netfilter/ipset/ |
| H A D | ip_set_list_set.c | 36 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/arch/powerpc/lib/ |
| H A D | rheap.c | 154 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 D | sysfs-transport-srp | 13 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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | uprobe_syscall.c | 35 __naked void uprobe_regs(struct pt_regs *before, struct pt_regs *after) in uprobe_regs() argument 112 struct pt_regs before = {}, after = {}; in test_uprobe_regs_equal() local 113 unsigned long *pb = (unsigned long *) &before; in test_uprobe_regs_equal() 136 uprobe_regs(&before, &after); in test_uprobe_regs_equal() 139 cnt = sizeof(before)/sizeof(*pb); in test_uprobe_regs_equal() 145 * Check register before and after uprobe_regs_trigger call in test_uprobe_regs_equal() 153 if (!ASSERT_EQ(pb[i], pa[i], "register before-after value check")) in test_uprobe_regs_equal() 174 * original (before) rax value in test_uprobe_regs_equal() 178 ASSERT_EQ(pp[i], pb[i], "uprobe rax prog-before value check"); in test_uprobe_regs_equal() 212 struct pt_regs before in test_regs_change() local [all...] |
| H A D | uprobe_multi_test.c | 834 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/Documentation/ABI/testing/ |
| H A D | sysfs-devices-waiting_for_supplier | 12 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 D | debugfs-driver-genwqe | 33 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 D | qman_ccsr.c | 625 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 D | ftrace_test.c | 310 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 D | maintainer-entry-profile.rst | 25 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/scripts/coccinelle/free/ |
| H A D | ifnulldev_put.cocci | 3 /// 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 D | ifnullfree.cocci | 2 /// 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."
|