From ebb464f0e433ec9573e12c4c41ff11a04b854060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=99=97=E5=8D=9A?= Date: Fri, 21 Jun 2024 18:41:55 +0800 Subject: [PATCH] =?UTF-8?q?migrate=5Fimage=E5=B7=A5=E5=85=B7=E9=87=87?= =?UTF-8?q?=E9=9B=86=E6=9B=B4=E5=A4=9A=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CPU_Subsystem/eBPF_proc_image/tools/migrate_image.bpf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools/migrate_image.bpf.c b/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools/migrate_image.bpf.c index 538c0bf83..77aad0510 100644 --- a/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools/migrate_image.bpf.c +++ b/eBPF_Supermarket/CPU_Subsystem/eBPF_proc_image/tools/migrate_image.bpf.c @@ -82,6 +82,8 @@ int tracepoint_sched_migrate_task(struct trace_event_raw_sched_migrate_task *arg per_migrate.time = time; per_migrate.orig_cpu = args->orig_cpu; per_migrate.dest_cpu = args->dest_cpu; + per_migrate.pload_avg = BPF_CORE_READ(task,se.avg.load_avg);//进程的量化负载; + per_migrate.putil_avg = BPF_CORE_READ(task,se.avg.util_avg);//进程的实际算力; per_migrate.mem_usage = BPF_CORE_READ(task,mm,total_vm) << PAGE_SHIFT;