projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compat: work around broken _SC_NPROCESSORS_CONF on MUSL libc
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-perf-counters.c
diff --git
a/liblttng-ust/lttng-context-perf-counters.c
b/liblttng-ust/lttng-context-perf-counters.c
index 7e87be94cfa5a5f7c19d63fe449b8c3ae70d5a76..4816f89b5a4a536e4cc2741e6e5d658379692baf 100644
(file)
--- a/
liblttng-ust/lttng-context-perf-counters.c
+++ b/
liblttng-ust/lttng-context-perf-counters.c
@@
-20,6
+20,7
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _LGPL_SOURCE
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
@@
-366,10
+367,7
@@
static
void perf_counter_get_value(struct lttng_ctx_field *field,
struct lttng_ctx_value *value)
{
void perf_counter_get_value(struct lttng_ctx_field *field,
struct lttng_ctx_value *value)
{
- uint64_t v;
-
- v = wrapper_perf_counter_read(field);
- value->u.s64 = v;
+ value->u.s64 = wrapper_perf_counter_read(field);
}
/* Called with UST lock held */
}
/* Called with UST lock held */
This page took
0.023496 seconds
and
4
git commands to generate.