Re: [PATCH 3/5] sched_ext: Implement scx_bpf_clock_get_ns()
From: Peter Zijlstra
Date: Mon Nov 18 2024 - 04:44:47 EST
On Mon, Nov 18, 2024 at 12:48:35AM +0900, Changwoo Min wrote:
> Hello,
>
> On 24. 11. 17. 04:31, Peter Zijlstra wrote:
> > Have you seen the insides of kernel/sched/clock.c ?
>
> Of course. :-) It would be super helpful if you could let me know
> specific questions or comments.
Well, mostly I don't understand anything about what you're doing.
Perhaps if you explain what's wrong with the bits we have ?
If you're looking at the scheduler, then rq->clock really should be
sufficient.
If you're looking at rando BPF crud, then what's wrong with
local_clock()?
Also, why are we still caring about systems that have crazy TSC?