projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: cache the result of getpid() internally
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-vpid.c
diff --git
a/liblttng-ust/lttng-context-vpid.c
b/liblttng-ust/lttng-context-vpid.c
index 5e5ed145d944adf08be61755eaa32faefe3e52b4..53fb314b8c0da1bdf353f00c59c953879b4ed150 100644
(file)
--- a/
liblttng-ust/lttng-context-vpid.c
+++ b/
liblttng-ust/lttng-context-vpid.c
@@
-27,17
+27,6
@@
#include <lttng/ust-tracer.h>
#include <lttng/ringbuffer-config.h>
#include <lttng/ust-tracer.h>
#include <lttng/ringbuffer-config.h>
-#ifdef __linux__
-static inline
-pid_t wrapper_getpid(void)
-{
- return getpid();
-}
-
-void lttng_context_vpid_reset(void)
-{
-}
-#else
/*
* We cache the result to ensure we don't trigger a system call for
* each event.
/*
* We cache the result to ensure we don't trigger a system call for
* each event.
@@
-60,7
+49,6
@@
void lttng_context_vpid_reset(void)
{
cached_vpid = 0;
}
{
cached_vpid = 0;
}
-#endif
static
size_t vpid_get_size(struct lttng_ctx_field *field, size_t offset)
static
size_t vpid_get_size(struct lttng_ctx_field *field, size_t offset)
This page took
0.024958 seconds
and
4
git commands to generate.