* 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>
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 */