projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler warning cleanup: is_signed_type: compare -1 to 1
[lttng-modules.git]
/
include
/
lttng
/
events.h
diff --git
a/include/lttng/events.h
b/include/lttng/events.h
index 7fa41ac18d1664b7d409cd287d7202cd6af53418..e4d62adb8ad9fc3de9bc4395fd426648d6884a8f 100644
(file)
--- a/
include/lttng/events.h
+++ b/
include/lttng/events.h
@@
-10,7
+10,7
@@
#ifndef _LTTNG_EVENTS_H
#define _LTTNG_EVENTS_H
#ifndef _LTTNG_EVENTS_H
#define _LTTNG_EVENTS_H
-#include <l
inux/
version.h>
+#include <l
ttng/kernel-
version.h>
#include <linux/list.h>
#include <linux/kprobes.h>
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/kprobes.h>
#include <linux/kref.h>
@@
-23,7
+23,7
@@
#include <lttng/abi-old.h>
#include <lttng/endian.h>
#include <lttng/abi-old.h>
#include <lttng/endian.h>
-#define lttng_is_signed_type(type) (((type)
(-1)) < 0
)
+#define lttng_is_signed_type(type) (((type)
-1) < (type) 1
)
struct lttng_channel;
struct lttng_session;
struct lttng_channel;
struct lttng_session;
@@
-157,7
+157,7
@@
union lttng_ctx_value {
* lttng_ctx_field because cpu hotplug needs fixed-location addresses.
*/
struct lttng_perf_counter_field {
* lttng_ctx_field because cpu hotplug needs fixed-location addresses.
*/
struct lttng_perf_counter_field {
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,10,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,10,0))
struct lttng_cpuhp_node cpuhp_prepare;
struct lttng_cpuhp_node cpuhp_online;
#else
struct lttng_cpuhp_node cpuhp_prepare;
struct lttng_cpuhp_node cpuhp_online;
#else
@@
-353,6
+353,10
@@
struct lttng_event {
int has_enablers_without_bytecode;
};
int has_enablers_without_bytecode;
};
+struct lttng_kernel_notifier_ctx {
+ int eval_capture;
+};
+
// FIXME: Really similar to lttng_event above. Could those be merged ?
struct lttng_event_notifier {
enum lttng_event_type evtype; /* First field. */
// FIXME: Really similar to lttng_event above. Could those be merged ?
struct lttng_event_notifier {
enum lttng_event_type evtype; /* First field. */
@@
-385,10
+389,12
@@
struct lttng_event_notifier {
size_t num_captures;
struct list_head capture_bytecode_runtime_head;
int has_enablers_without_bytecode;
size_t num_captures;
struct list_head capture_bytecode_runtime_head;
int has_enablers_without_bytecode;
+ int eval_capture; /* Should evaluate capture */
void (*send_notification)(struct lttng_event_notifier *event_notifier,
struct lttng_probe_ctx *lttng_probe_ctx,
void (*send_notification)(struct lttng_event_notifier *event_notifier,
struct lttng_probe_ctx *lttng_probe_ctx,
- const char *interpreter_stack_data);
+ const char *interpreter_stack_data,
+ struct lttng_kernel_notifier_ctx *notif_ctx);
struct lttng_event_notifier_group *group; /* Weak ref */
};
struct lttng_event_notifier_group *group; /* Weak ref */
};
@@
-986,6
+992,8
@@
void lttng_enabler_link_bytecode(const struct lttng_event_desc *event_desc,
struct lttng_ctx *ctx,
struct list_head *instance_bytecode_runtime_head,
struct list_head *enabler_bytecode_runtime_head);
struct lttng_ctx *ctx,
struct list_head *instance_bytecode_runtime_head,
struct list_head *enabler_bytecode_runtime_head);
+void lttng_free_event_filter_runtime(struct lttng_event *event);
+void lttng_free_event_notifier_filter_runtime(struct lttng_event_notifier *event_notifier);
int lttng_probes_init(void);
int lttng_probes_init(void);
@@
-1039,7
+1047,7
@@
int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx)
int lttng_add_callstack_to_ctx(struct lttng_ctx **ctx, int type);
#if defined(CONFIG_CGROUPS) && \
int lttng_add_callstack_to_ctx(struct lttng_ctx **ctx, int type);
#if defined(CONFIG_CGROUPS) && \
- ((L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,6,0)) || \
+ ((L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,6,0)) || \
LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0))
int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx);
#else
LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0))
int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx);
#else
@@
-1051,7
+1059,7
@@
int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if defined(CONFIG_IPC_NS) && \
#endif
#if defined(CONFIG_IPC_NS) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,8,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,8,0))
int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-1062,7
+1070,7
@@
int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \
#endif
#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,8,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,8,0))
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-1073,7
+1081,7
@@
int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if defined(CONFIG_NET_NS) && \
#endif
#if defined(CONFIG_NET_NS) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,8,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,8,0))
int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-1084,7
+1092,7
@@
int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if defined(CONFIG_PID_NS) && \
#endif
#if defined(CONFIG_PID_NS) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,8,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,8,0))
int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-1095,7
+1103,7
@@
int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if defined(CONFIG_USER_NS) && \
#endif
#if defined(CONFIG_USER_NS) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,8,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,8,0))
int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-1106,7
+1114,7
@@
int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if defined(CONFIG_UTS_NS) && \
#endif
#if defined(CONFIG_UTS_NS) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,8,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,8,0))
int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
@@
-1117,7
+1125,7
@@
int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx)
#endif
#if defined(CONFIG_TIME_NS) && \
#endif
#if defined(CONFIG_TIME_NS) && \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(5,6,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(5,6,0))
int lttng_add_time_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
int lttng_add_time_ns_to_ctx(struct lttng_ctx **ctx);
#else
static inline
This page took
0.026803 seconds
and
4
git commands to generate.