MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pipe_timestamp

Function pipe_timestamp

freebsd/kern/sys_pipe.c:432–437  ·  view source on GitHub ↗

* Get a timestamp. * * This used to be vfs_timestamp but the higher precision is unnecessary and * can very negatively affect performance in virtualized environments (e.g., on * vms running on amd64 when using the rdtscp instruction). */

Source from the content-addressed store, hash-verified

430 * vms running on amd64 when using the rdtscp instruction).
431 */
432static void
433pipe_timestamp(struct timespec *tsp)
434{
435
436 getnanotime(tsp);
437}
438
439/*
440 * The pipe system call for the DTYPE_PIPE type of pipes. If we fail, let

Callers 3

pipe_zone_ctorFunction · 0.85
pipe_readFunction · 0.85
pipe_writeFunction · 0.85

Calls 1

getnanotimeFunction · 0.85

Tested by

no test coverage detected