From 7c31522a0ca2e104e3990df0d39346079eebe9e5 Mon Sep 17 00:00:00 2001 From: Dmitri Plotnikov Date: Sat, 17 Oct 2020 21:29:09 -0700 Subject: [PATCH] Use eBPF-based time-in-state monitoring for groups of threads Bug: 169279846 Test: N/A - this is just a header file Change-Id: I4beeb127fbd654e3c0a8f70f4f5088c5d7388ece --- progs/include/bpf_timeinstate.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/progs/include/bpf_timeinstate.h b/progs/include/bpf_timeinstate.h index 6cbc4e1..61d3324 100644 --- a/progs/include/bpf_timeinstate.h +++ b/progs/include/bpf_timeinstate.h @@ -15,6 +15,7 @@ */ #include +#include #define BPF_FS_PATH "/sys/fs/bpf/" @@ -43,3 +44,9 @@ typedef struct { uint32_t policy; uint32_t freq; } freq_idx_key_t; + +typedef struct { + pid_t tgid; + uint16_t aggregation_key; + uint16_t bucket; +} aggregated_task_tis_key_t;