Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-21 Thread Samuel Thibault
Zhaoming Luo, le sam. 21 déc. 2024 12:34:58 +0800, a ecrit: > On 12/19/24 6:31 PM, Samuel Thibault wrote: > > Zhaoming Luo, le jeu. 19 déc. 2024 09:23:57 +0800, a ecrit: > > > On 12/19/24 4:18 AM, Luca wrote: > > > To be honest I came across /dev/time several times but I'm still quite > > > confuse

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-21 Thread Samuel Thibault
Hello, Diego Nieto Cid, le mar. 17 déc. 2024 23:02:01 -0300, a ecrit: > El mar, 17 dic 2024 a las 22:21, Zhaoming Luo () escribió: > > > > The precision of this implmentation is 10ms. Not sure how to do with the > > possible data race. > > > > Signed-off-by: Zhaoming Luo > > --- > > include/mach

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-20 Thread Zhaoming Luo
On 12/19/24 6:31 PM, Samuel Thibault wrote: Zhaoming Luo, le jeu. 19 déc. 2024 09:23:57 +0800, a ecrit: On 12/19/24 4:18 AM, Luca wrote: To be honest I came across /dev/time several times but I'm still quite confused about it. I tried to read the documentation and the code of storeio translator

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-19 Thread Samuel Thibault
Hello, Zhaoming Luo, le jeu. 19 déc. 2024 09:23:57 +0800, a ecrit: > On 12/19/24 4:18 AM, Luca wrote: > To be honest I came across /dev/time several times but I'm still quite > confused about it. I tried to read the documentation and the code of storeio > translator (`showtrans /dev/time` gave me

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-18 Thread Zhaoming Luo
On 12/19/24 4:18 AM, Luca wrote: Hi, Hello, Il 18/12/24 02:20, Zhaoming Luo ha scritto: The precision of this implmentation is 10ms. Not sure how to do with the possible data race. Signed-off-by: Zhaoming Luo ---   include/mach/mach_host.defs |  7 +++   kern/mach_clock.c   | 20

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-18 Thread Luca
Hi, Il 18/12/24 02:20, Zhaoming Luo ha scritto: The precision of this implmentation is 10ms. Not sure how to do with the possible data race. Signed-off-by: Zhaoming Luo --- include/mach/mach_host.defs | 7 +++ kern/mach_clock.c | 20 2 files changed, 27

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-18 Thread Diego Nieto Cid
El mar, 17 dic 2024 a las 23:33, Zhaoming Luo () escribió: > On 12/18/24 10:02 AM, Diego Nieto Cid wrote: > > El mar, 17 dic 2024 a las 22:21, Zhaoming Luo () escribió: > > > > `read_elapsed_ticks` is only used to calculate elapsed_usec and thus > > may be inlined, removing the otherwise unused var

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-17 Thread Zhaoming Luo
Thank you for the review. On 12/18/24 10:02 AM, Diego Nieto Cid wrote: El mar, 17 dic 2024 a las 22:21, Zhaoming Luo () escribió: The precision of this implmentation is 10ms. Not sure how to do with the possible data race. Signed-off-by: Zhaoming Luo --- include/mach/mach_host.defs | 7 ++

Re: [RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-17 Thread Diego Nieto Cid
El mar, 17 dic 2024 a las 22:21, Zhaoming Luo () escribió: > > The precision of this implmentation is 10ms. Not sure how to do with the > possible data race. > > Signed-off-by: Zhaoming Luo > --- > include/mach/mach_host.defs | 7 +++ > kern/mach_clock.c | 20 >

[RFC PATCH Mach] Add a mach host operation which returns elapsed time since bootup

2024-12-17 Thread Zhaoming Luo
The precision of this implmentation is 10ms. Not sure how to do with the possible data race. Signed-off-by: Zhaoming Luo --- include/mach/mach_host.defs | 7 +++ kern/mach_clock.c | 20 2 files changed, 27 insertions(+) diff --git a/include/mach/mach_host.def