Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 43) sorted by relevance

12

/tools/perf/arch/sparc/annotate/
A Dinstructions.c8 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond()
12 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
18 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond()
23 (cond[1] == 't' && cond[2] == '\0') || in is_branch_cond()
24 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
25 (cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0'))) in is_branch_cond()
30 (cond[1] == 't' && cond[2] == '\0') || in is_branch_cond()
31 (cond[1] == 'u' && cond[2] == '\0') || in is_branch_cond()
32 (cond[1] == 'e' && cond[2] == '\0') || in is_branch_cond()
33 (cond[1] == 'e' && cond[2] == 'u' && cond[3] == '\0'))) in is_branch_cond()
[all …]
/tools/perf/util/
A Dmutex.c87 CHECK_ERR(pthread_cond_init(&cnd->cond, &attr)); in __cond_init()
91 void cond_init(struct cond *cnd) in cond_init()
96 void cond_init_pshared(struct cond *cnd) in cond_init_pshared()
101 void cond_destroy(struct cond *cnd) in cond_destroy()
103 CHECK_ERR(pthread_cond_destroy(&cnd->cond)); in cond_destroy()
106 void cond_wait(struct cond *cnd, struct mutex *mtx) in cond_wait()
108 CHECK_ERR(pthread_cond_wait(&cnd->cond, &mtx->lock)); in cond_wait()
111 void cond_signal(struct cond *cnd) in cond_signal()
113 CHECK_ERR(pthread_cond_signal(&cnd->cond)); in cond_signal()
116 void cond_broadcast(struct cond *cnd) in cond_broadcast()
[all …]
A Dmutex.h96 struct cond { struct
97 pthread_cond_t cond; argument
115 void cond_init(struct cond *cnd);
120 void cond_init_pshared(struct cond *cnd);
121 void cond_destroy(struct cond *cnd);
123 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
124 void cond_signal(struct cond *cnd);
125 void cond_broadcast(struct cond *cnd);
A Dtop.h58 struct cond cond; member
/tools/bootconfig/include/linux/
A Dbootconfig.h18 #define WARN_ON(cond) \ argument
19 ((cond) ? printf("Internal warning(%s:%d, %s): %s\n", \
20 __FILE__, __LINE__, __func__, #cond) : 0)
22 #define unlikely(cond) (cond) argument
/tools/include/linux/
A Drefcount.h45 #define REFCOUNT_WARN(cond, str) (void)(cond) argument
48 #define REFCOUNT_WARN(cond, str) BUG_ON(cond) argument
A Dkernel.h51 #define BUG_ON(cond) do { if (cond) {} } while (0) argument
53 #define BUG_ON(cond) assert(!(cond)) argument
A Dbuild_bug.h39 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) argument
/tools/testing/selftests/nolibc/
A Dnolibc-test.c185 #define EXPECT_ZR(cond, expr) \ argument
199 #define EXPECT_NZ(cond, expr, val) \ argument
213 #define EXPECT_EQ(cond, expr, val) \ argument
227 #define EXPECT_NE(cond, expr, val) \ argument
241 #define EXPECT_GE(cond, expr, val) \ argument
255 #define EXPECT_GT(cond, expr, val) \ argument
297 #define EXPECT_SYSZR(cond, expr) \ argument
392 #define EXPECT_PTRZR(cond, expr) \ argument
411 #define EXPECT_PTRNZ(cond, expr) \ argument
545 #define EXPECT_STRZR(cond, expr) \ argument
[all …]
/tools/testing/shared/linux/
A Drcupdate.h8 #define rcu_dereference_protected(p, cond) rcu_dereference(p) argument
9 #define rcu_dereference_check(p, cond) rcu_dereference(p) argument
/tools/testing/selftests/sync/
A Dsynctest.h34 #define ASSERT(cond, msg) do { \ argument
35 if (!(cond)) { \
/tools/testing/scatterlist/
A Dmain.c30 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail() argument
34 fprintf(stderr, "Failed on '%s'!\n\n", cond); in fail()
48 #define VALIDATE(cond, st, test) \ argument
49 if (!(cond)) \
50 fail((test), (st), #cond);
/tools/lib/perf/include/internal/
A Dtests.h47 #define __T(text, cond) \ argument
49 if (!(cond)) { \
/tools/perf/pmu-events/
A Dmetric.py212 cond: Union[int, float, Expression],
215 self.cond = _Constify(cond)
220 cond_str = self.cond.ToPerfJson()
229 cond = self.cond.Simplify()
232 if isinstance(cond, Constant):
233 return false_val if cond.value == '0' else true_val
238 return Select(true_val, cond, false_val)
242 return self.cond.Equals(other.cond) and self.false_val.Equals(
250 cond = self.cond.Substitute(name, expression)
252 return Select(true_val, cond, false_val)
/tools/testing/selftests/net/tcp_ao/lib/
A Dsock.c91 struct tcp_counters *c, test_cnt cond, in __test_skpair_poll() argument
103 if (c && cond && __skpair_poll_should_stop(sk, c, cond)) in __test_skpair_poll()
149 test_cnt cond, volatile int *err) in test_skpair_wait_poll() argument
590 test_cnt cond, volatile int *err, in _test_server_run() argument
600 ret = __test_skpair_poll(sk, 0, timeout_sec, c, cond, err); in _test_server_run()
611 ret = __test_skpair_poll(sk, 1, timeout_sec, c, cond, err); in _test_server_run()
648 struct tcp_counters *c, test_cnt cond, in test_client_loop() argument
668 ret = __test_skpair_poll(sk, 1, TEST_TIMEOUT_SEC, c, cond, err); in test_client_loop()
683 c, cond, err); in test_client_loop()
714 test_cnt cond, volatile int *err) in test_skpair_client() argument
[all …]
A Daolib.h594 extern int test_skpair_wait_poll(int sk, bool write, test_cnt cond,
598 test_cnt cond, volatile int *err);
601 test_cnt cond, volatile int *err) in test_skpair_connect_poll() argument
607 (void *)&addr, sizeof(addr), cond, err); in test_skpair_connect_poll()
611 test_cnt cond, volatile int *err);
613 test_cnt cond, volatile int *err);
/tools/testing/selftests/mm/
A Dpkey_sighandler_tests.c36 static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
119 pthread_cond_signal(&cond); in sigsegv_handler()
131 pthread_cond_signal(&cond); in sigusr1_handler()
229 pthread_cond_wait(&cond, &mutex); in test_sigsegv_handler_with_pkey0_disabled()
269 pthread_cond_wait(&cond, &mutex); in test_sigsegv_handler_cannot_access_stack()
344 pthread_cond_wait(&cond, &mutex); in test_sigsegv_handler_with_different_pkey_for_stack()
385 pthread_cond_wait(&cond, &mutex); in test_pkru_preserved_after_sigusr1()
/tools/tracing/latency/
A Dlatency-collector.c193 pthread_cond_t cond; member
226 pthread_cond_t cond; member
341 errno = pthread_cond_signal(cond); in cond_signal()
349 errno = pthread_cond_wait(cond, mutex); in cond_wait()
356 errno = pthread_cond_broadcast(cond); in cond_broadcast()
417 errno = pthread_cond_init(cond, attr); in cond_init()
445 cond_init(&printstate.cond, &cattr); in init_printstate()
668 cond_broadcast(&printstate.cond); in printstate_next_ticket()
840 cond_signal(&q->cond); in queue_cond_signal()
845 cond_wait(&q->cond, &q->mutex); in queue_cond_wait()
[all …]
/tools/testing/selftests/drivers/net/hw/
A Ddevlink_port_split.py169 def test(cond, msg): argument
175 if cond:
180 return cond
/tools/testing/selftests/net/forwarding/
A Dsch_red.sh201 local cond=$1; shift
214 ((pct $cond))
219 local cond=$1; shift
232 ((pct $cond))
/tools/testing/selftests/bpf/
A Dbpf_experimental.h515 #define bpf_assert(cond) if (!(cond)) bpf_throw(0); argument
524 #define bpf_assert_with(cond, value) if (!(cond)) bpf_throw(value); argument
/tools/perf/tests/
A Dtests.h14 #define TEST_ASSERT_VAL(text, cond) \ argument
16 if (!(cond)) { \
/tools/testing/selftests/net/lib/py/
A Dksft.py118 def ksft_busy_wait(cond, sleep=0.005, deadline=1, comment=""): argument
121 if cond():
/tools/testing/selftests/kvm/include/
A Dkvm_util.h323 #define __TEST_ASSERT_VM_VCPU_IOCTL(cond, name, ret, vm) \ argument
329 if (cond) \
338 TEST_ASSERT(cond, __KVM_IOCTL_ERROR(name, ret)); \
341 #define TEST_ASSERT_VM_VCPU_IOCTL(cond, cmd, ret, vm) \ argument
342 __TEST_ASSERT_VM_VCPU_IOCTL(cond, #cmd, ret, vm)
/tools/perf/bench/
A Dfutex-wake.c39 static struct cond thread_parent, thread_worker;

Completed in 43 milliseconds

12