Code cleanup in contexts
[lttng-ust.git] / liblttng-ust / lttng-context-perf-counters.c
index 7e87be94cfa5a5f7c19d63fe449b8c3ae70d5a76..4816f89b5a4a536e4cc2741e6e5d658379692baf 100644 (file)
@@ -20,6 +20,7 @@
  * 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>
@@ -366,10 +367,7 @@ static
 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 */
This page took 0.024258 seconds and 4 git commands to generate.