Home
last modified time | relevance | path

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

12

/tools/perf/arch/sparc/annotate/
Dinstructions.c3 static int is_branch_cond(const char *cond) in is_branch_cond() argument
5 if (cond[0] == '\0') in is_branch_cond()
8 if (cond[0] == 'a' && cond[1] == '\0') in is_branch_cond()
11 if (cond[0] == 'c' && in is_branch_cond()
12 (cond[1] == 'c' || cond[1] == 's') && in is_branch_cond()
13 cond[2] == '\0') in is_branch_cond()
16 if (cond[0] == 'e' && in is_branch_cond()
17 (cond[1] == '\0' || in is_branch_cond()
18 (cond[1] == 'q' && cond[2] == '\0'))) in is_branch_cond()
21 if (cond[0] == 'g' && in is_branch_cond()
[all …]
/tools/perf/util/
Dmutex.c79 static void __cond_init(struct cond *cnd, bool pshared) in __cond_init()
87 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()
[all …]
Dmutex.h77 struct cond { struct
78 pthread_cond_t cond; argument
96 void cond_init(struct cond *cnd);
101 void cond_init_pshared(struct cond *cnd);
102 void cond_destroy(struct cond *cnd);
104 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
105 void cond_signal(struct cond *cnd);
106 void cond_broadcast(struct cond *cnd);
Dtop.h57 struct cond cond; member
/tools/bootconfig/include/linux/
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/testing/selftests/nolibc/
Dnolibc-test.c185 #define EXPECT_ZR(cond, expr) \ argument
186 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_zr(expr, llen); } while (0)
199 #define EXPECT_NZ(cond, expr, val) \ argument
200 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen; } while (0)
213 #define EXPECT_EQ(cond, expr, val) \ argument
214 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_eq(expr, llen, val); } while (0)
227 #define EXPECT_NE(cond, expr, val) \ argument
228 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ne(expr, llen, val); } while (0)
241 #define EXPECT_GE(cond, expr, val) \ argument
242 do { if (!(cond)) result(llen, SKIPPED); else ret += expect_ge(expr, llen, val); } while (0)
[all …]
/tools/include/linux/
Drefcount.h45 #define REFCOUNT_WARN(cond, str) (void)(cond) argument
48 #define REFCOUNT_WARN(cond, str) BUG_ON(cond) argument
Dkernel.h63 #define BUG_ON(cond) do { if (cond) {} } while (0) argument
65 #define BUG_ON(cond) assert(!(cond)) argument
Dbuild_bug.h39 #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) argument
/tools/testing/shared/linux/
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/
Dsynctest.h34 #define ASSERT(cond, msg) do { \ argument
35 if (!(cond)) { \
/tools/testing/scatterlist/
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/
Dtests.h47 #define __T(text, cond) \ argument
49 if (!(cond)) { \
/tools/testing/selftests/mm/
Dpkey_sighandler_tests.c37 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; variable
74 pthread_cond_signal(&cond); in sigsegv_handler()
86 pthread_cond_signal(&cond); in sigusr1_handler()
182 pthread_cond_wait(&cond, &mutex); in test_sigsegv_handler_with_pkey0_disabled()
222 pthread_cond_wait(&cond, &mutex); in test_sigsegv_handler_cannot_access_stack()
294 pthread_cond_wait(&cond, &mutex); in test_sigsegv_handler_with_different_pkey_for_stack()
329 pthread_cond_wait(&cond, &mutex); in test_pkru_preserved_after_sigusr1()
/tools/perf/pmu-events/
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/tracing/latency/
Dlatency-collector.c193 pthread_cond_t cond; member
226 pthread_cond_t cond; member
339 static __always_inline void cond_signal(pthread_cond_t *cond) in cond_signal() argument
341 errno = pthread_cond_signal(cond); in cond_signal()
346 static __always_inline void cond_wait(pthread_cond_t *restrict cond, in cond_wait() argument
349 errno = pthread_cond_wait(cond, mutex); in cond_wait()
354 static __always_inline void cond_broadcast(pthread_cond_t *cond) in cond_broadcast() argument
356 errno = pthread_cond_broadcast(cond); in cond_broadcast()
414 static __always_inline void cond_init(pthread_cond_t *cond, in cond_init() argument
417 errno = pthread_cond_init(cond, attr); in cond_init()
[all …]
/tools/testing/selftests/drivers/net/hw/
Ddevlink_port_split.py169 def test(cond, msg): argument
175 if cond:
180 return cond
/tools/testing/selftests/net/forwarding/
Dsch_red.sh220 local cond=$1; shift
233 ((pct $cond))
238 local cond=$1; shift
251 ((pct $cond))
/tools/testing/selftests/bpf/
Dbpf_experimental.h512 #define bpf_assert(cond) if (!(cond)) bpf_throw(0); argument
521 #define bpf_assert_with(cond, value) if (!(cond)) bpf_throw(value); argument
/tools/perf/tests/
Dtests.h13 #define TEST_ASSERT_VAL(text, cond) \ argument
15 if (!(cond)) { \
/tools/testing/selftests/net/lib/py/
Dksft.py102 def ksft_busy_wait(cond, sleep=0.005, deadline=1, comment=""): argument
105 if cond():
/tools/testing/selftests/kvm/include/
Dkvm_util.h309 #define __TEST_ASSERT_VM_VCPU_IOCTL(cond, name, ret, vm) \ argument
315 if (cond) \
324 TEST_ASSERT(cond, __KVM_IOCTL_ERROR(name, ret)); \
327 #define TEST_ASSERT_VM_VCPU_IOCTL(cond, cmd, ret, vm) \ argument
328 __TEST_ASSERT_VM_VCPU_IOCTL(cond, #cmd, ret, vm)
/tools/perf/bench/
Dfutex-wake.c39 static struct cond thread_parent, thread_worker;
Dfutex-lock-pi.c41 static struct cond thread_parent, thread_worker;
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c2511 pthread_cond_t *cond; member
2540 pthread_cond_t cond; in FIXTURE() local
2573 pthread_cond_init(&self->cond, NULL); in FIXTURE_SETUP()
2576 self->sibling[0].cond = &self->cond; in FIXTURE_SETUP()
2584 self->sibling[1].cond = &self->cond; in FIXTURE_SETUP()
2614 pthread_cond_destroy(&self->cond); in FIXTURE_TEARDOWN()
2638 pthread_cond_wait(me->cond, me->mutex); in tsync_sibling()
2695 ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) { in TEST_F()
2738 ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) { in TEST_F()
2763 ASSERT_EQ(0, pthread_cond_broadcast(&self->cond)) { in TEST_F()
[all …]

12