xref: /linux/tools/testing/selftests/bpf/progs/wakeup_source.h (revision 12e896b9794bbd88f56aeac2a5807ae8d4bb5ad8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright 2026 Google LLC */
3 
4 #ifndef __WAKEUP_SOURCE_H__
5 #define __WAKEUP_SOURCE_H__
6 
7 #define WAKEUP_NAME_LEN 128
8 
9 struct wakeup_event_t {
10 	unsigned long active_count;
11 	long long active_time_ns;
12 	unsigned long event_count;
13 	unsigned long expire_count;
14 	long long last_time_ns;
15 	long long max_time_ns;
16 	long long prevent_sleep_time_ns;
17 	long long total_time_ns;
18 	unsigned long wakeup_count;
19 	char name[WAKEUP_NAME_LEN];
20 };
21 
22 #endif /* __WAKEUP_SOURCE_H__ */
23