Use eBPF-based time-in-state monitoring for groups of threads am: 7c31522a0c

Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1505394

Change-Id: I3cd13d4f029f13f17b1cf4f351f7ee4c38059bd8
This commit is contained in:
Dmitri Plotnikov 2020-11-20 18:28:10 +00:00 committed by Automerger Merge Worker
commit 2baa8e3962

View file

@ -15,6 +15,7 @@
*/
#include <inttypes.h>
#include <sys/types.h>
#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;