Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 24 of 24) sorted by relevance

/tools/perf/tests/shell/
A Dstat+csv_output.sh31 local exp=0
34 in "--no-args") exp=6
35 ;; "--system-wide") exp=6
36 ;; "--event") exp=6
37 ;; "--interval") exp=7
38 ;; "--per-thread") exp=7
41 ;; "--per-core") exp=8
42 ;; "--per-socket") exp=8
43 ;; "--per-node") exp=8
44 ;; "--per-die") exp=8
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dkptr_xchg_inline.c12 struct bpf_insn exp; in test_kptr_xchg_inline() local
42 exp = BPF_MOV64_REG(BPF_REG_0, BPF_REG_2); in test_kptr_xchg_inline()
43 if (!ASSERT_OK(memcmp(&insn[3], &exp, sizeof(exp)), "mov")) in test_kptr_xchg_inline()
46 exp = BPF_ATOMIC_OP(BPF_DW, BPF_XCHG, BPF_REG_1, BPF_REG_0, 0); in test_kptr_xchg_inline()
47 if (!ASSERT_OK(memcmp(&insn[4], &exp, sizeof(exp)), "xchg")) in test_kptr_xchg_inline()
A Dcore_reloc.c440 exp->local_anon_struct = -1; in setup_type_id_case_local()
441 exp->local_anon_union = -1; in setup_type_id_case_local()
442 exp->local_anon_enum = -1; in setup_type_id_case_local()
445 exp->local_anon_arr = -1; in setup_type_id_case_local()
465 exp->local_anon_enum = i; in setup_type_id_case_local()
480 exp->local_anon_arr = i; in setup_type_id_case_local()
529 exp->targ_struct = 0; in setup_type_id_case_failure()
530 exp->targ_union = 0; in setup_type_id_case_failure()
531 exp->targ_enum = 0; in setup_type_id_case_failure()
532 exp->targ_int = 0; in setup_type_id_case_failure()
[all …]
A Dcpu_mask.c8 static void validate_mask(int case_nr, const char *exp, bool *mask, int n) in validate_mask() argument
12 for (i = 0; exp[i]; i++) { in validate_mask()
13 if (exp[i] == '1') { in validate_mask()
A Dvarlen.c8 #define CHECK_VAL(got, exp) \ argument
9 CHECK((got) != (exp), "check", "got %ld != exp %ld\n", \
10 (long)(got), (long)(exp))
A Dtest_strncmp.c25 int exp) in strncmp_full_str_cmp() argument
29 int delta = exp; in strncmp_full_str_cmp()
38 ASSERT_EQ(got, exp, name); in strncmp_full_str_cmp()
A Dtcp_hdr_options.c150 static int check_hdr_opt(const struct bpf_test_option *exp, in check_hdr_opt() argument
154 if (!ASSERT_EQ(memcmp(exp, act, sizeof(*exp)), 0, hdr_desc)) { in check_hdr_opt()
155 print_option(exp, "expected: "); in check_hdr_opt()
163 static int check_hdr_stg(const struct hdr_stg *exp, int fd, in check_hdr_stg() argument
172 if (!ASSERT_EQ(memcmp(exp, &act, sizeof(*exp)), 0, stg_desc)) { in check_hdr_stg()
173 print_hdr_stg(exp, "expected: "); in check_hdr_stg()
A Dcore_extern.c127 uint64_t *got, *exp; in test_core_extern() local
158 exp = (uint64_t *)&t->data; in test_core_extern()
160 ASSERT_EQ(got[j], exp[j], "result"); in test_core_extern()
/tools/testing/selftests/powerpc/math/
A Dmma.c21 uint32_t exp[4*4] = {1, 2, 3, 4, in mma() local
34 if (z[i] == exp[i]) { in mma()
/tools/testing/selftests/x86/
A Damx.c166 static void validate_req_xcomp_perm(enum expected_result exp) in validate_req_xcomp_perm() argument
179 if (exp == FAIL_EXPECTED) { in validate_req_xcomp_perm()
203 static void validate_xcomp_perm(enum expected_result exp) in validate_xcomp_perm() argument
207 if (exp == FAIL_EXPECTED) { in validate_xcomp_perm()
214 } else if (exp == SUCCESS_EXPECTED) { in validate_xcomp_perm()
241 static void setup_altstack(void *addr, unsigned long size, enum expected_result exp) in setup_altstack() argument
252 if (exp == FAIL_EXPECTED) { in setup_altstack()
/tools/perf/util/
A Dtrigger.h36 #define TRIGGER_WARN_ONCE(t, exp) \ argument
37 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \
/tools/testing/selftests/kvm/lib/
A Dassert.c67 test_assert(bool exp, const char *exp_str, in test_assert() argument
72 if (!(exp)) { in test_assert()
A Ducall_common.c82 void ucall_assert(uint64_t cmd, const char *exp, const char *file, in ucall_assert() argument
91 WRITE_ONCE(uc->args[GUEST_ERROR_STRING], (uint64_t)(exp)); in ucall_assert()
/tools/testing/selftests/net/
A Dcmsg_time.sh39 local exp=$3
57 echo " Case $case returned '$got', expected '$exp' $xf"
A Dlink_netns.py118 for src_net, netns, link_netns, peer_netns, exp in cases:
130 ksft_true(validate_link_netns(tgt_net, "foo", exp),
/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dmisc.c456 int exp = 0; in get_thresh_cmp_val() local
480 exp++; in get_thresh_cmp_val()
489 if (!(value & 0xC0) && exp) in get_thresh_cmp_val()
492 result = (exp << 8) | value; in get_thresh_cmp_val()
/tools/testing/selftests/ublk/trace/
A Dseq_io.bt15 printf("io_out_of_order: exp %llu actual %llu\n",
/tools/testing/selftests/powerpc/benchmarks/
A Dcontext_switch.c267 unsigned long exp = expected; in cmpxchg() local
269 __atomic_compare_exchange_n(p, &exp, desired, 0, in cmpxchg()
271 return exp; in cmpxchg()
/tools/hv/
A Dvmbus_bufring.c68 rte_atomic32_cmpset(volatile uint32_t *dst, uint32_t exp, uint32_t src) in rte_atomic32_cmpset() argument
78 "a" (exp), in rte_atomic32_cmpset()
/tools/testing/selftests/bpf/
A Dtest_verifier.c1305 static bool cmp_str_seq(const char *log, const char *exp) in cmp_str_seq() argument
1312 if (!strlen(exp)) in cmp_str_seq()
1314 p = strchr(exp, '\t'); in cmp_str_seq()
1316 p = exp + strlen(exp); in cmp_str_seq()
1318 len = p - exp; in cmp_str_seq()
1323 strncpy(needle, exp, len); in cmp_str_seq()
1332 exp = p + 1; in cmp_str_seq()
/tools/testing/selftests/kvm/include/
A Ducall_common.h38 __printf(5, 6) void ucall_assert(uint64_t cmd, const char *exp,
A Dtest_util.h51 void __printf(5, 6) test_assert(bool exp, const char *exp_str,
/tools/testing/selftests/net/mptcp/
A Dmptcp_join.sh3471 local exp="${2}"
3477 check_output "userspace_pm_dump ${ns}" "${exp}"
3487 local exp="${3}"
3492 check_output "userspace_pm_get_addr ${ns} ${id}" "${exp}"
3503 local exp="${3}"
3512 print_check "event ${ns} ${evt_name} (${exp})"
3521 if [ "${count}" != "${exp}" ]; then
3522 fail_test "got ${count} events, expected ${exp}"
A Dmptcp_lib.sh516 local exp="e_${var}"

Completed in 34 milliseconds