-
Notifications
You must be signed in to change notification settings - Fork 7
/
perfetto_wrapper.h
35 lines (34 loc) · 1.93 KB
/
perfetto_wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2023 Qais Yousef */
struct lb_sd_stats;
void init_perfetto(void);
void flush_perfetto(void);
void start_perfetto_trace(void);
void stop_perfetto_trace(void);
void trace_cpu_load_avg(uint64_t ts, int cpu, int value);
void trace_cpu_runnable_avg(uint64_t ts, int cpu, int value);
void trace_cpu_util_avg(uint64_t ts, int cpu, int value);
void trace_cpu_uclamped_avg(uint64_t ts, int cpu, int value);
void trace_cpu_util_est_enqueued(uint64_t ts, int cpu, int value);
void trace_cpu_util_avg_rt(uint64_t ts, int cpu, int value);
void trace_cpu_util_avg_dl(uint64_t ts, int cpu, int value);
void trace_cpu_util_avg_irq(uint64_t ts, int cpu, int value);
void trace_cpu_load_avg_thermal(uint64_t ts, int cpu, int value);
void trace_task_load_avg(uint64_t ts, const char *name, int pid, int value);
void trace_task_runnable_avg(uint64_t ts, const char *name, int pid, int value);
void trace_task_util_avg(uint64_t ts, const char *name, int pid, int value);
void trace_task_uclamped_avg(uint64_t ts, const char *name, int pid, int value);
void trace_task_util_est_enqueued(uint64_t ts, const char *name, int pid, int value);
void trace_task_util_est_ewma(uint64_t ts, const char *name, int pid, int value);
void trace_cpu_nr_running(uint64_t ts, int cpu, int value);
void trace_cpu_idle(uint64_t ts, int cpu, int state);
void trace_cpu_idle_miss(uint64_t ts, int cpu, int state, int miss);
void trace_lb_entry(uint64_t ts, int this_cpu, int lb_cpu, char *phase);
void trace_lb_exit(uint64_t ts, int this_cpu, int lb_cpu);
void trace_lb_sd_stats(uint64_t ts, struct lb_sd_stats *sd_stats);
void trace_lb_overloaded(uint64_t ts, unsigned int value);
void trace_lb_overutilized(uint64_t ts, unsigned int value);
void trace_lb_misfit(uint64_t ts, int cpu, unsigned long misfit_task_load);
void trace_ipi_send_cpu(uint64_t ts, int from_cpu, int target_cpu,
char *callsite, void *callsitep,
char *callback, void *callbackp);