struct scx_flatcg *skel;
struct bpf_link *link;
struct timespec intv_ts = { .tv_sec = 2, .tv_nsec = 0 };
- bool dump_cgrps = false;
__u64 last_cpu_sum = 0, last_cpu_idle = 0;
__u64 last_stats[FCG_NR_STATS] = {};
unsigned long seq = 0;
assert(skel->rodata->nr_cpus > 0);
skel->rodata->cgrp_slice_ns = __COMPAT_ENUM_OR_ZERO("scx_public_consts", "SCX_SLICE_DFL");
- while ((opt = getopt(argc, argv, "s:i:dfvh")) != -1) {
+ while ((opt = getopt(argc, argv, "s:i:fvh")) != -1) {
double v;
switch (opt) {
intv_ts.tv_sec = v;
intv_ts.tv_nsec = (v - (float)intv_ts.tv_sec) * 1000000000;
break;
- case 'd':
- dump_cgrps = true;
- break;
case 'f':
skel->rodata->fifo_sched = true;
break;
}
}
- printf("slice=%.1lfms intv=%.1lfs dump_cgrps=%d",
+ printf("slice=%.1lfms intv=%.1lfs",
(double)skel->rodata->cgrp_slice_ns / 1000000.0,
- (double)intv_ts.tv_sec + (double)intv_ts.tv_nsec / 1000000000.0,
- dump_cgrps);
+ (double)intv_ts.tv_sec + (double)intv_ts.tv_nsec / 1000000000.0);
+
SCX_OPS_LOAD(skel, flatcg_ops, scx_flatcg, uei);
link = SCX_OPS_ATTACH(skel, flatcg_ops, scx_flatcg);