scx_lavd: logging cpu performance target

Signed-off-by: Changwoo Min <changwoo@igalia.com>
This commit is contained in:
Changwoo Min 2024-06-13 00:44:04 +09:00
parent e6348a11e9
commit 2e74b86b4a
3 changed files with 8 additions and 4 deletions

View File

@ -231,6 +231,7 @@ struct task_ctx_x {
u64 avg_lat_cri; /* average latency criticality */
u64 avg_perf_cri; /* average performance criticality */
u32 nr_active; /* number of active cores */
u32 cpuperf_cur; /* CPU's current performance target */
};

View File

@ -564,6 +564,7 @@ int submit_task_ctx(struct task_struct *p, struct task_ctx *taskc, u32 cpu_id)
m->taskc_x.avg_lat_cri = stat_cur->avg_lat_cri;
m->taskc_x.avg_perf_cri = stat_cur->avg_perf_cri;
m->taskc_x.nr_active = stat_cur->nr_active;
m->taskc_x.cpuperf_cur = cpuc->cpuperf_cur;
memcpy(&m->taskc, taskc, sizeof(m->taskc));

View File

@ -188,14 +188,14 @@ impl<'a> Scheduler<'a> {
if mseq % 32 == 1 {
info!(
"| {:6} | {:8} | {:17} \
"| {:6} | {:7} | {:17} \
| {:4} | {:4} | {:9} \
| {:6} | {:8} | {:7} \
| {:8} | {:7} | {:8} \
| {:7} | {:7} | {:9} \
| {:9} | {:9} | {:9} \
| {:8} | {:8} | {:8} \
| {:6} | {:6} | ",
| {:8} | {:6} | {:6} |",
"mseq",
"pid",
"comm",
@ -216,6 +216,7 @@ impl<'a> Scheduler<'a> {
"wake_freq",
"perf_cri",
"avg_pc",
"cpufreq",
"cpu_util",
"sys_ld",
"nr_act",
@ -227,14 +228,14 @@ impl<'a> Scheduler<'a> {
let tx_comm: &str = c_tx_cm_str.to_str().unwrap();
info!(
"| {:6} | {:8} | {:17} \
"| {:6} | {:7} | {:17} \
| {:4} | {:4} | {:9} \
| {:6} | {:8} | {:7} \
| {:8} | {:7} | {:8} \
| {:7} | {:7} | {:9} \
| {:9} | {:9} | {:9} \
| {:8} | {:8} | {:8} \
| {:6} | {:6} |",
| {:8} | {:6} | {:6} |",
mseq,
tx.pid,
tx_comm,
@ -255,6 +256,7 @@ impl<'a> Scheduler<'a> {
tc.wake_freq,
tc.perf_cri,
tx.avg_perf_cri,
tx.cpuperf_cur,
tx.cpu_util,
tx.sys_load_factor,
tx.nr_active,