Home
last modified time | relevance | path

Searched refs:is_alloc (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/wpa/src/utils/
H A Dos_unix.c555 int testing_test_fail(const char *tag, bool is_alloc) in testing_test_fail() argument
566 is_alloc = !!is_alloc; in testing_test_fail()
568 for (idx = 0; idx < ARRAY_SIZE(wpa_trace_test_fail[is_alloc]); idx++) { in testing_test_fail()
569 if (wpa_trace_test_fail[is_alloc][idx].fail_after != 0) in testing_test_fail()
572 if (idx >= ARRAY_SIZE(wpa_trace_test_fail[is_alloc])) in testing_test_fail()
578 if (is_alloc) { in testing_test_fail()
597 pos = wpa_trace_test_fail[is_alloc][idx].pattern; in testing_test_fail()
648 wpa_trace_test_fail[is_alloc][idx].fail_after--; in testing_test_fail()
649 if (wpa_trace_test_fail[is_alloc][idx].fail_after == 0) { in testing_test_fail()
651 wpa_trace_test_fail[is_alloc][idx].pattern); in testing_test_fail()
[all …]
H A Dos.h692 int testing_test_fail(const char *tag, bool is_alloc);
693 int testing_set_fail_pattern(bool is_alloc, char *patterns);
694 int testing_get_fail_pattern(bool is_alloc, char *buf, size_t buflen);
698 static inline int testing_set_fail_pattern(bool is_alloc, char *patterns) in testing_set_fail_pattern() argument
703 static inline int testing_get_fail_pattern(bool is_alloc, char *buf, in testing_get_fail_pattern() argument