creds.h \
dynamic-type.h \
elf.h \
+ err-ptr.h \
events.h \
jhash.h \
logging.h \
--- /dev/null
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#ifndef _UST_COMMON_ERR_PTR_H
+#define _UST_COMMON_ERR_PTR_H
+
+#include <urcu/compiler.h>
+#include <unistd.h>
+
+#define MAX_ERRNO 4095
+
+static inline
+int IS_ERR_VALUE(long value)
+{
+ if (caa_unlikely((unsigned long) value >= (unsigned long) -MAX_ERRNO))
+ return 1;
+ else
+ return 0;
+}
+
+static inline
+void *ERR_PTR(long error)
+{
+ return (void *) error;
+}
+
+static inline
+long PTR_ERR(const void *ptr)
+{
+ return (long) ptr;
+}
+
+static inline
+int IS_ERR(const void *ptr)
+{
+ return IS_ERR_VALUE((long) ptr);
+}
+
+#endif /* _UST_COMMON_ERR_PTR_H */
tracepoint.c \
tracepoint-weak-test.c \
tracepoint-internal.h \
- lttng-tracer-core.h \
- error.h
+ lttng-tracer-core.h
liblttng_ust_tracepoint_la_LIBADD = \
liblttng-ust-common.la \
events.h \
clock.h \
lttng-ust-uuid.h \
- error.h \
tracef.c \
lttng-ust-tracef-provider.h \
tracelog.c \
+++ /dev/null
-/*
- * SPDX-License-Identifier: LGPL-2.1-only
- *
- * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- */
-
-#ifndef _LTTNG_ERROR_H
-#define _LTTNG_ERROR_H
-
-#include <urcu/compiler.h>
-#include <unistd.h>
-
-#define MAX_ERRNO 4095
-
-static inline
-int IS_ERR_VALUE(long value)
-{
- if (caa_unlikely((unsigned long) value >= (unsigned long) -MAX_ERRNO))
- return 1;
- else
- return 0;
-}
-
-static inline
-void *ERR_PTR(long error)
-{
- return (void *) error;
-}
-
-static inline
-long PTR_ERR(const void *ptr)
-{
- return (long) ptr;
-}
-
-static inline
-int IS_ERR(const void *ptr)
-{
- return IS_ERR_VALUE((long) ptr);
-}
-
-#endif /* _LTTNG_ERROR_H */
*/
#define _LGPL_SOURCE
-#include <error.h>
#include <dlfcn.h>
#include <stdlib.h>
#include "common/logging.h"
*/
#define _LGPL_SOURCE
-#include <error.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <stdint.h>
#include "common/ust-fd.h"
#include "common/dynamic-type.h"
#include "common/ust-context-provider.h"
-#include "error.h"
#include "lttng-ust-uuid.h"
#include "tracepoint-internal.h"
#include "lttng-tracer-core.h"
#include "common/jhash.h"
-#include "error.h"
#include "lib/lttng-ust/events.h"
/*
#include "tracepoint-internal.h"
#include "lttng-tracer-core.h"
#include "common/jhash.h"
-#include "error.h"
+#include "common/err-ptr.h"
/* Test compiler support for weak symbols with hidden visibility. */
int __tracepoint_test_symbol1 __attribute__((weak, visibility("hidden")));