Lines Matching +full:count +full:- +full:threshold
1 // SPDX-License-Identifier: GPL-2.0
9 * 'int-ll64.h' and avoid compile warnings when printing __u64 with %llu.
28 #include "../perf-sys.h"
47 long long count; in bp_count() local
50 ret = read(fd, &count, sizeof(long long)); in bp_count()
56 return count; in bp_count()
60 #define THRESHOLD 100 macro
66 long long count; in test__bp_signal_overflow() local
93 pe.sample_period = THRESHOLD; in test__bp_signal_overflow()
101 fd = sys_perf_event_open(&pe, 0, -1, -1, in test__bp_signal_overflow()
120 count = bp_count(fd); in test__bp_signal_overflow()
124 pr_debug("count %lld, overflow %d\n", in test__bp_signal_overflow()
125 count, overflows); in test__bp_signal_overflow()
127 if (count != EXECUTIONS) { in test__bp_signal_overflow()
129 count, EXECUTIONS); in test__bp_signal_overflow()
133 if (overflows != EXECUTIONS / THRESHOLD) { in test__bp_signal_overflow()
135 overflows, EXECUTIONS / THRESHOLD); in test__bp_signal_overflow()