search for: timev

Displaying 20 results from an estimated 500 matches for "timev".

Did you mean: time
2011 Oct 06
2
[LLVMdev] A potential bug
...backwards aggressively in an end BB. It does not check dependencies on stores in an end BB though. For example, in this code snippet: ... 1. %sum.safe_r47.pre-phi = phi i64* [ %sum.safe_r47.pre, %entry.for.end_crit_edge ], [ %sum.safe_r42, %for.body ] 2. %call9 = call i32 @gettimeofday(%struct.timeval* %end, %struct.timeval* null) nounwind 3. %0 = bitcast %struct.timeval* %start to i64* // eliminated by HandleEndBlock in DeadStoreElimination.cpp 4. %1 = bitcast %struct.timeval* %agg.tmp to i64* // eliminated ... 5. %tmp49 = load i64* %0, align 8 //...
2011 Oct 06
2
[LLVMdev] A potential bug
...not check dependencies >> on stores in an end BB though. For example, in this code snippet: >>   ... >> 1.  %sum.safe_r47.pre-phi = phi i64* [ %sum.safe_r47.pre, >> %entry.for.end_crit_edge ], [ %sum.safe_r42, %for.body ] >> 2.  %call9 = call i32 @gettimeofday(%struct.timeval* %end, %struct.timeval* >> null) nounwind >> 3.  %0 = bitcast %struct.timeval* %start to i64*           // eliminated by >> HandleEndBlock in DeadStoreElimination.cpp >> 4.  %1 = bitcast %struct.timeval* %agg.tmp to i64*     // eliminated ... >> 5.  %tmp49 = load i64...
2011 Oct 06
0
[LLVMdev] A potential bug
...n an end BB. It does not check dependencies > on stores in an end BB though. For example, in this code snippet: >   ... > 1.  %sum.safe_r47.pre-phi = phi i64* [ %sum.safe_r47.pre, > %entry.for.end_crit_edge ], [ %sum.safe_r42, %for.body ] > 2.  %call9 = call i32 @gettimeofday(%struct.timeval* %end, %struct.timeval* > null) nounwind > 3.  %0 = bitcast %struct.timeval* %start to i64*           // eliminated by > HandleEndBlock in DeadStoreElimination.cpp > 4.  %1 = bitcast %struct.timeval* %agg.tmp to i64*     // eliminated ... > 5.  %tmp49 = load i64* %0, align 8       ...
2019 Sep 28
0
[PATCH nbdkit v2 1/4] common/include: Add function for subtracting struct timeval.
...\ + } \ + } while (0) + +#define TEST_SUBTRACT(tv1, tv2, exp_sec, exp_usec) \ + do { \ + struct timeval z; \ + \ + subtract_timeval (&tv1, &tv2, &z); \ + if (z.tv_sec != (exp_sec) || z.tv_usec != (exp_usec)) { \ +...
2019 Sep 30
1
Re: [PATCH nbdkit v2 1/4] common/include: Add function for subtracting struct timeval.
...sure this part matters, but doesn't hurt either. > +++ b/common/include/tvdiff.h > @@ -40,7 +40,7 @@ > #include <sys/time.h> > > /* Return the number of µs (microseconds) in y - x. */ > -static int64_t > +static inline int64_t > tvdiff_usec (const struct timeval *x, const struct timeval *y) > { > int64_t usec; > @@ -50,4 +50,15 @@ tvdiff_usec (const struct timeval *x, const struct timeval *y) > return usec; > } > > +/* Return timeval difference as another struct timeval. z = y - x. */ > +static inline void > +sub...
2011 Oct 06
0
[LLVMdev] A potential bug
...gt; >> on stores in an end BB though. For example, in this code snippet: > >> ... > >> 1. %sum.safe_r47.pre-phi = phi i64* [ %sum.safe_r47.pre, > >> %entry.for.end_crit_edge ], [ %sum.safe_r42, %for.body ] > >> 2. %call9 = call i32 @gettimeofday(%struct.timeval* %end, > %struct.timeval* > >> null) nounwind > >> 3. %0 = bitcast %struct.timeval* %start to i64* // eliminated > by > >> HandleEndBlock in DeadStoreElimination.cpp > >> 4. %1 = bitcast %struct.timeval* %agg.tmp to i64* // eliminated ......
2011 Oct 06
1
[LLVMdev] A potential bug
...stores in an end BB though. For example, in this code snippet: >> >>   ... >> >> 1.  %sum.safe_r47.pre-phi = phi i64* [ %sum.safe_r47.pre, >> >> %entry.for.end_crit_edge ], [ %sum.safe_r42, %for.body ] >> >> 2.  %call9 = call i32 @gettimeofday(%struct.timeval* %end, >> >> %struct.timeval* >> >> null) nounwind >> >> 3.  %0 = bitcast %struct.timeval* %start to i64*           // >> >> eliminated by >> >> HandleEndBlock in DeadStoreElimination.cpp >> >> 4.  %1 = bitcast %struct.timeva...
2004 Aug 06
3
libnet: sock_connected insists on a timeout
While working on integrating nonblocking IO into libshout, I noticed that sock_connected cannot be called without blocking. If I read it right, a timeout of zero will cause the call to block until the socket is connected. So, my questions: 1. Am I reading this right? 2. How should I poll a pending connection? I'd prefer to have a zero timeout act as a poll, but I don't know if any other
2001 Nov 29
1
patch from faith@alephnull to add rate indicator to --progress
...nd to be sure I'm using the right options to provide optimal throughput.] --- rsync-2.4.6/util.c.rik Tue Sep 5 22:46:43 2000 +++ rsync-2.4.6/util.c Fri Oct 5 09:19:35 2001 @@ -835,28 +835,70 @@ return (int)*s1 - (int)*s2; } -static OFF_T last_ofs; +static OFF_T last_ofs; +static struct timeval print_time; +static struct timeval start_time; +static OFF_T start_ofs; + +static unsigned long msdiff(struct timeval *t1, struct timeval *t2) +{ + return (t2->tv_sec - t1->tv_sec) * 1000 + + (t2->tv_usec - t1->tv_usec) / 1000; +} + +static void rprint_progress(OFF_T ofs, O...
2016 May 12
3
[Bug 1066] New: nfq_get_timestamp() not setting timeval struc
https://bugzilla.netfilter.org/show_bug.cgi?id=1066 Bug ID: 1066 Summary: nfq_get_timestamp() not setting timeval struc Product: libnetfilter_queue Version: unspecified Hardware: x86_64 OS: Ubuntu Status: NEW Severity: normal Priority: P5 Component: libnetfilter_queue Assignee: netfilter-buglog at lists.netfilt...
2020 Oct 17
0
[PATCH nbdkit] common/include/tvdiff.h: Add formal specification.
This commit adds a formal specification of tvdiff_usec and a partial specification of subtract_timeval. These may be proved using Frama-C. The existing functions ignored overflow, but it is possible to call the functions with parameters that will cause overflow. So to create a formal specification I had to modify the functions to signal overflow. Luckily GCC and Clang have convenient __builtin...
2012 Jan 26
0
[LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
On Thu, Jan 26, 2012 at 3:41 PM, Hal Finkel <hfinkel at anl.gov> wrote: > On Thu, 2012-01-26 at 15:36 -0600, Sebastian Pop wrote: >> arm-none-linux-gnueabi > > Indeed, adding -ccc-host-triple arm-none-linux-gnueabi I also get Minor remark: please use -target instead of -ccc-host-triple that is now deprecated. Thanks for looking at this testcase. Sebastian -- Qualcomm
2019 Jun 07
1
Problem with opusfile & ndk
Hi Xiph.org Team. We are using opusfile library <https://github.com/xiph/opusfile> for streaming *.opus* audio in our projects. But now we have a problem with building opusfile library for android with *ndk-build*. In particular, with arm64-v8a platform: Google removed <sys/timeb.h> from android. And now building opusfile with nkd-build crashes with error "fatal error:
2012 Jan 26
2
[LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
On Thu, 2012-01-26 at 15:36 -0600, Sebastian Pop wrote: > arm-none-linux-gnueabi Indeed, adding -ccc-host-triple arm-none-linux-gnueabi I also get vectorization (even though I don't get vectorization when targeting x86_64). I'll let you know what I find. -Hal -- Hal Finkel Postdoctoral Appointee Leadership Computing Facility Argonne National Laboratory
2019 Sep 28
2
[PATCH nbdkit 1/2] common/include: Add function for subtracting struct timeval.
...\ + } \ + } while (0) + +#define TEST_SUBTRACT(tv1, tv2, exp_sec, exp_usec) \ + do { \ + struct timeval z; \ + \ + subtract_timeval (&tv1, &tv2, &z); \ + if (z.tv_sec != (exp_sec) || z.tv_usec != (exp_usec)) { \ +...
2004 Oct 28
1
read.csv(stdin(),...) with sweave
hello, i would like to read in a small amount of csv data directly from a sweave-enabled latex document. i tried \begin{Scode}{fig=FALSE,echo=TRUE} timeval <- read.csv(stdin(),nrows=2) t1,t2,t3,t4 24.23,26.79,23.47,23.97 \end{Scode} but apparently the stdin() approach doesnt't work as I get Writing to file test.tex Processing code chunks ... 1 : echo term verbatim Error: chunk 1 Error in parse(file, n, text, prompt) : parse error Any he...
2019 Nov 30
0
[PATCH nbdkit v2 2/3] filters: stats: Measure time per operation
...h (fp); } @@ -187,11 +202,18 @@ stats_config_complete (nbdkit_next_config_complete *next, void *nxdata) "statsappend=<BOOL> True to append to the log (default false).\n" static inline void -record_stat (stat *st, uint32_t count) +record_stat (stat *st, uint32_t count, struct timeval *start) { + struct timeval end; + uint64_t usecs; + + gettimeofday(&end, NULL); + usecs = tvdiff_usec(start, &end); + ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock); st->ops++; st->bytes += count; + st->usecs += usecs; } /* Read. */ @@ -200,10 +222,12 @@ stats_prea...
2023 Jan 26
0
[klibc:time64] time: Use clock_* system calls for time-of-day and sleep
...ged, 82 insertions(+), 10 deletions(-) diff --git a/usr/include/sys/time.h b/usr/include/sys/time.h index da9f5809..e8163303 100644 --- 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 *, st...
2004 Feb 27
2
patch: better progress meter
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20040227/923b87ee/PGP.bin
2019 Nov 30
0
[PATCH nbdkit 2/3] filters: stats: Measure time per operation
...lters/stats/stats.c | 78 +++++++++++++++++++++++++++++++++---------- 1 file changed, 60 insertions(+), 18 deletions(-) diff --git a/filters/stats/stats.c b/filters/stats/stats.c index 45bedae..86439e7 100644 --- a/filters/stats/stats.c +++ b/filters/stats/stats.c @@ -60,12 +60,12 @@ static struct timeval start_t; /* This lock protects all the stats. */ static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; -static uint64_t pread_ops, pread_bytes; -static uint64_t pwrite_ops, pwrite_bytes; -static uint64_t trim_ops, trim_bytes; -static uint64_t zero_ops, zero_bytes; -static uint64_t extents_...