1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ 2 #ifndef __CPUFREQ_H 3 #define __CPUFREQ_H 4 5 #define MAX_ENTRIES 1024 6 #define MAX_CPU_NR 128 7 #define MAX_SLOTS 26 8 #define TASK_COMM_LEN 16 9 #define HIST_STEP_SIZE 200 10 11 struct hkey { 12 char comm[TASK_COMM_LEN]; 13 }; 14 15 struct hist { 16 __u32 slots[MAX_SLOTS]; 17 }; 18 19 #endif /* __CPUFREQ_H */ 20