search for: clockid_t

Displaying 20 results from an estimated 22 matches for "clockid_t".

Did you mean: clockid
2023 Jan 14
1
[klibc:time64] time: Use 64-bit time types on all architectures
...const struct iovec *, int); @@ -204,9 +207,12 @@ int setitimer(int, const struct itimerval *, struct itimerval *); clock_t times(struct tms *); int gettimeofday::__gettimeofday(void *, struct timezone *); int settimeofday::__settimeofday(const void *, const struct timezone *); -int clock_gettime(clockid_t, struct timespec *); -int clock_settime(clockid_t, const struct timespec *); -int clock_nanosleep::__clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); +<32> int clock_gettime64::clock_gettime(clockid_t, struct timespec *); +<64> int clock_gettime(clockid_t, st...
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...a/usr/include/sys/time.h +++ b/usr/include/sys/time.h @@ -50,6 +50,9 @@ static inline int FD_ISSET(int __fd, fd_set *__fdsetp) __extern int gettimeofday(struct timeval *, struct timezone *); __extern int settimeofday(const struct timeval *, const struct timezone *); +__extern int clock_gettime(clockid_t, struct timespec *); +__extern int clock_settime(clockid_t, const struct timespec *); +__extern int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *); __extern int getitimer(int, struct itimerval *); __extern int setitimer(int, const struct itimerval *, struct itimerval...
2023 Nov 03
0
9.3p1 Daemon Rejects Client Connections on armv7l-dey-linux-gnueabihf w/ GCC 10/11/12
...nanoseconds. This function is a cancellation point and therefore not marked with __THROW. */ extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining); /* Get resolution of clock CLOCK_ID. */ extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; /* Get current value of clock CLOCK_ID and store it in TP. */ extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW __nonnull((2)); /* Set clock CLOCK_ID to value TP. */ extern int clock_settime (cloc...
2012 Dec 05
3
[PATCH] qemu-traditional: update configure check for -lrt changes in glibc 2.17
...le.de> --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 904e019..ace3c3e 100755 --- a/configure +++ b/configure @@ -1097,7 +1097,7 @@ fi cat > $TMPC <<EOF #include <signal.h> #include <time.h> -int main(void) { clockid_t id; return clock_gettime(id, NULL); } +int main(void) { struct itimerspec v; timer_t t; return timer_gettime (t, &v); } EOF rt=no -- 1.8.0.1
2013 May 07
3
Re: [PATCH] qemu-traditional: update configure check for -lrt changes in glibc 2.17
...0755 > > > > --- a/configure > > > > +++ b/configure > > > > @@ -1097,7 +1097,7 @@ fi > > > > cat > $TMPC <<EOF > > > > #include <signal.h> > > > > #include <time.h> > > > > -int main(void) { clockid_t id; return clock_gettime(id, NULL); } > > > > +int main(void) { struct itimerspec v; timer_t t; return timer_gettime (t, &v); } > > > > EOF > > > > > > > > rt=no At least 2 acked patches were not committed to qemu-traditional before the RC1 fre...
2018 Sep 17
11
[patch V2 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support
Matt attempted to add CLOCK_TAI support to the VDSO clock_gettime() implementation, which extended the clockid switch case and added yet another slightly different copy of the same code. Especially the extended switch case is problematic as the compiler tends to generate a jump table which then requires to use retpolines. If jump tables are disabled it adds yet another conditional to the existing
2018 Sep 14
24
[patch 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support
Matt attempted to add CLOCK_TAI support to the VDSO clock_gettime() implementation, which extended the clockid switch case and added yet another slightly different copy of the same code. Especially the extended switch case is problematic as the compiler tends to generate a jump table which then requires to use retpolines. If jump tables are disabled it adds yet another conditional to the existing
2018 Sep 14
24
[patch 00/11] x86/vdso: Cleanups, simmplifications and CLOCK_TAI support
Matt attempted to add CLOCK_TAI support to the VDSO clock_gettime() implementation, which extended the clockid switch case and added yet another slightly different copy of the same code. Especially the extended switch case is problematic as the compiler tends to generate a jump table which then requires to use retpolines. If jump tables are disabled it adds yet another conditional to the existing
2018 Sep 14
0
[patch 09/11] x86/vdso: Simplify the invalid vclock case
...RV_TSCPAGE - else if (gtod->vclock_mode == VCLOCK_HVCLOCK) - cycles = vread_hvclock(mode); + else if (mode == VCLOCK_HVCLOCK) + return vread_hvclock(); #endif - else - return 0; - v = cycles - gtod->cycle_last; - return v * gtod->mult; + return U64_MAX; } notrace static int do_hres(clockid_t clk, struct timespec *ts) { struct vgtod_ts *base = &gtod->basetime[clk]; unsigned int seq; - int mode; - u64 ns; + u64 cycles, ns; do { seq = gtod_read_begin(gtod); - mode = gtod->vclock_mode; ts->tv_sec = base->sec; ns = base->nsec; - ns += vgetsns(&mode...
2017 Nov 21
2
question about xray tls data initialization
...most code logic still valid (-1 as invalid value), r/w API replaced with windows mprotect => VirtualProtect readTSC in xray_x86_64.inc also works for windows replace read tsc from proc with QueryPerformanceFrequency msvc can not compile such code void setupNewBuffer(int (*wall_clock_reader)(clockid_t, struct timespec *)); must use typedef first . xray use clock_gettime as default implementation , which is not friendly for windows .create a fake one based on chrono system_clock(ignore clockid_t) for tls destructor part, I've just commente...
2006 Jan 21
2
Xen kernel compilation fails - no such file or directory features.h (but its there)
...pes.h:30: error: syntax error before "timer_t" include/linux/types.h:30: warning: type defaults to `int'' in declaration of `timer_t'' include/linux/types.h:30: warning: data definition has no type or storage class include/linux/types.h:31: error: syntax error before "clockid_t" include/linux/types.h:31: warning: type defaults to `int'' in declaration of `clockid_t'' include/linux/types.h:31: warning: data definition has no type or storage class include/linux/types.h:35: error: syntax error before "uid_t" include/linux/types.h:35: warning: t...
2017 Nov 16
2
question about xray tls data initialization
I'm learning the xray library and try if it can be built on windows, in xray_fdr_logging_impl.h line 152 , comment written as // Using pthread_once(...) to initialize the thread-local data structures but at line 175, 183, code written as thread_local pthread_key_t key; // Ensure that we only actually ever do the pthread initialization once. thread_local bool UNUSED Unused = [] {
2018 Sep 14
0
[patch 11/11] x66/vdso: Add CLOCK_TAI support
...d.c | 4 ++++ arch/x86/include/asm/vgtod.h | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) --- a/arch/x86/entry/vdso/vclock_gettime.c +++ b/arch/x86/entry/vdso/vclock_gettime.c @@ -140,7 +140,7 @@ notrace static inline u64 vgetcyc(int mo notrace static int do_hres(clockid_t clk, struct timespec *ts) { - struct vgtod_ts *base = &gtod->basetime[clk]; + struct vgtod_ts *base = &gtod->basetime[clk & VGTOD_HRES_MASK]; u64 cycles, last, ns; unsigned int seq; --- a/arch/x86/entry/vsyscall/vsyscall_gtod.c +++ b/arch/x86/entry/vsyscall/vsyscall_gtod.c...
2007 Jul 31
0
Zaptel compiling broken: error: conflicting types for '__kernel_dev_t'
...18: error: conflicting types for '__kernel_dev_t' /usr/include/asm/posix_types.h:10: error: previous declaration of '__kernel_dev_t' was here /usr/include/linux/types.h:30: error: syntax error before "timer_t" /usr/include/linux/types.h:31: error: syntax error before "clockid_t" make: *** [zonedata.lo] Error 1 my environment: CenOS 4.2, gcc-3.4.4-2, kernel-2.6.12.2 & my system is running asterisk-1.2.9.1+zaptel-1.2.6 can anyone give me some advise? thanks a lot. B/Rgz.
2018 Sep 14
0
[patch 10/11] x86/vdso: Move cycle_last handling into the caller
...tic inline u64 vgetcyc(int mode) { if (mode == VCLOCK_TSC) - return vread_tsc(); + return (u64)rdtsc_ordered(); #ifdef CONFIG_PARAVIRT_CLOCK else if (mode == VCLOCK_PVCLOCK) return vread_pvclock(); @@ -168,17 +141,19 @@ notrace static inline u64 vgetcyc(int mo notrace static int do_hres(clockid_t clk, struct timespec *ts) { struct vgtod_ts *base = &gtod->basetime[clk]; + u64 cycles, last, ns; unsigned int seq; - u64 cycles, ns; do { seq = gtod_read_begin(gtod); ts->tv_sec = base->sec; ns = base->nsec; + last = gtod->cycle_last; cycles = vgetcyc(gtod-...
2006 May 15
3
Eicon Diva - problems building new v3 melware driver
...linux/types.h:30: error: syntax error before "timer_t" include/linux/types.h:30: warning: type defaults to `int' in declaration of `timer_t' include/linux/types.h:30: warning: data definition has no type or storage class include/linux/types.h:31: error: syntax error before "clockid_t" include/linux/types.h:31: warning: type defaults to `int' in declaration of `clockid_t' include/linux/types.h:31: warning: data definition has no type or storage class include/linux/types.h:35: error: syntax error before "uid_t" include/linux/types.h:35: warning: type defa...
2018 Sep 14
2
[patch 11/11] x66/vdso: Add CLOCK_TAI support
...e/asm/vgtod.h | 6 +++++- > 3 files changed, 10 insertions(+), 2 deletions(-) > > --- a/arch/x86/entry/vdso/vclock_gettime.c > +++ b/arch/x86/entry/vdso/vclock_gettime.c > @@ -140,7 +140,7 @@ notrace static inline u64 vgetcyc(int mo > > notrace static int do_hres(clockid_t clk, struct timespec *ts) > { > - struct vgtod_ts *base = &gtod->basetime[clk]; > + struct vgtod_ts *base = &gtod->basetime[clk & VGTOD_HRES_MASK]; > u64 cycles, last, ns; > unsigned int seq; > > --- a/arch/x86/entry/vsyscall/vsyscall_gtod.c >...
2018 Sep 14
2
[patch 11/11] x66/vdso: Add CLOCK_TAI support
...e/asm/vgtod.h | 6 +++++- > 3 files changed, 10 insertions(+), 2 deletions(-) > > --- a/arch/x86/entry/vdso/vclock_gettime.c > +++ b/arch/x86/entry/vdso/vclock_gettime.c > @@ -140,7 +140,7 @@ notrace static inline u64 vgetcyc(int mo > > notrace static int do_hres(clockid_t clk, struct timespec *ts) > { > - struct vgtod_ts *base = &gtod->basetime[clk]; > + struct vgtod_ts *base = &gtod->basetime[clk & VGTOD_HRES_MASK]; > u64 cycles, last, ns; > unsigned int seq; > > --- a/arch/x86/entry/vsyscall/vsyscall_gtod.c >...
2005 May 12
0
Using string from stdlib in winemaker
...h:37, from /usr/include/c++/3.3/bits/fpos.h:44, from /usr/include/c++/3.3/bits/char_traits.h:46, from /usr/include/c++/3.3/string:47, from wndclass.cxx:2: /usr/include/pthread.h:651: error: type specifier omitted for parameter ` clockid_t' /usr/include/pthread.h:651: error: Fehler beim Parsen before `*' token In file included from /usr/include/c++/3.3/bits/fpos.h:45, from /usr/include/c++/3.3/bits/char_traits.h:46, from /usr/include/c++/3.3/string:47, from wndclass.cxx:2: /u...
2010 May 20
3
Install eventmachine on Debian Lenny
...en /usr/include/time.h:297: error: expected initializer before ‘__THROW’ /usr/include/time.h:312: error: ‘time_t’ does not name a type /usr/include/time.h:315: error: ‘time_t’ does not name a type /usr/include/time.h:318: error: expected initializer before ‘__THROW’ /usr/include/time.h:332: error: ‘clockid_t’ was not declared in this scope /usr/include/time.h:332: error: expected primary-expression before ‘struct’ /usr/include/time.h:332: error: initializer expression list treated as compound expression /usr/include/time.h:332: error: expected ‘,’ or ‘;’ before ‘__THROW’ /usr/include/time.h:335: error:...