void lttng_event_notifier_notification_send(struct lttng_kernel_event_notifier *event_notifier,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
struct lttng_kernel_notification_ctx *notif_ctx);
#endif /* _LTTNG_EVENT_NOTIFIER_NOTIFICATION_H */
struct lttng_kernel_ctx_field {
const struct lttng_kernel_event_field *event_field;
- size_t (*get_size)(void *priv, struct lttng_probe_ctx *probe_ctx,
+ size_t (*get_size)(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
size_t offset);
- void (*record)(void *priv, struct lttng_probe_ctx *probe_ctx,
+ void (*record)(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan);
- void (*get_value)(void *priv, struct lttng_probe_ctx *probe_ctx,
+ void (*get_value)(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lttng_ctx_value *value);
void (*destroy)(void *priv);
void *priv;
int lttng_kernel_interpret_event_filter(const struct lttng_kernel_event_common *event,
const char *interpreter_stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
void *event_filter_ctx);
static inline
} \
}),
-struct lttng_probe_ctx {
+struct lttng_kernel_probe_ctx {
struct lttng_kernel_event_common *event;
uint8_t interruptible;
};
struct lttng_kernel_bytecode_node *bc;
int (*interpreter_func)(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
const char *interpreter_stack_data,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
void *caller_ctx);
int link_failed;
struct list_head node; /* list of bytecode runtime in event */
int eval_filter; /* Need to evaluate filters */
int (*run_filter)(const struct lttng_kernel_event_common *event,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
void *filter_ctx);
};
int eval_capture; /* Need to evaluate capture */
void (*notification_send)(struct lttng_kernel_event_notifier *event_notifier,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
struct lttng_kernel_notification_ctx *notif_ctx);
};
int lttng_bytecode_interpret_error(struct lttng_kernel_bytecode_runtime *bytecode_runtime,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
void *ctx);
int lttng_bytecode_interpret(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
const char *interpreter_stack_data,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
void *caller_ctx);
#endif /* _LTTNG_FILTER_H */
{ \
struct probe_local_vars { _locvar }; \
struct lttng_kernel_event_common *__event = __data; \
- struct lttng_probe_ctx __lttng_probe_ctx = { \
+ struct lttng_kernel_probe_ctx __lttng_probe_ctx = { \
.event = __event, \
.interruptible = !irqs_disabled(), \
}; \
* alignment of the largest element
* in the payload
*/
- struct lttng_probe_ctx *probe_ctx; /* Probe context */
+ struct lttng_kernel_probe_ctx *probe_ctx; /* Probe context */
};
/**
void lib_ring_buffer_ctx_init(struct lib_ring_buffer_ctx *ctx,
void *client_priv,
size_t data_size, int largest_align,
- struct lttng_probe_ctx *probe_ctx)
+ struct lttng_kernel_probe_ctx *probe_ctx)
{
ctx->client_priv = client_priv;
ctx->data_size = data_size;
int lttng_bytecode_interpret_error(
struct lttng_kernel_bytecode_runtime *bytecode_runtime __attribute__((unused)),
const char *stack_data __attribute__((unused)),
- struct lttng_probe_ctx *probe_ctx __attribute__((unused)),
+ struct lttng_kernel_probe_ctx *probe_ctx __attribute__((unused)),
void *ctx __attribute__((unused)))
{
return LTTNG_KERNEL_BYTECODE_INTERPRETER_ERROR;
#define IS_INTEGER_REGISTER(reg_type) \
(reg_type == REG_S64 || reg_type == REG_U64)
-static int context_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
+static int context_get_index(struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct load_ptr *ptr,
uint32_t idx)
{
return 0;
}
-static int dynamic_get_index(struct lttng_probe_ctx *lttng_probe_ctx,
+static int dynamic_get_index(struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct bytecode_runtime *runtime,
uint64_t index, struct estack_entry *stack_top)
{
*/
int lttng_bytecode_interpret(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
const char *interpreter_stack_data,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
void *caller_ctx)
{
struct bytecode_runtime *bytecode = container_of(kernel_bytecode, struct bytecode_runtime, p);
*/
int lttng_kernel_interpret_event_filter(const struct lttng_kernel_event_common *event,
const char *interpreter_stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
void *event_filter_ctx __attribute__((unused)))
{
struct lttng_kernel_bytecode_runtime *filter_bc_runtime;
}
static
-size_t lttng_callstack_length_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t lttng_callstack_length_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t orig_offset = offset;
* resulting callstack is saved to be accessed in the record step.
*/
static
-size_t lttng_callstack_sequence_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t lttng_callstack_sequence_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
struct stack_trace *trace;
struct field_data *fdata = (struct field_data *) priv;
}
static
-void lttng_callstack_length_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void lttng_callstack_length_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
chan->ops->event_write(ctx, &nr_seq_entries, sizeof(unsigned int));
}
static
-void lttng_callstack_sequence_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void lttng_callstack_sequence_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
}
static
-size_t lttng_callstack_length_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t lttng_callstack_length_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t orig_offset = offset;
* resulting callstack is saved to be accessed in the record step.
*/
static
-size_t lttng_callstack_sequence_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t lttng_callstack_sequence_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
struct lttng_stack_trace *trace;
struct field_data *fdata = (struct field_data *) priv;
}
static
-void lttng_callstack_length_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void lttng_callstack_length_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
}
static
-void lttng_callstack_sequence_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void lttng_callstack_sequence_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0))
static
-size_t cgroup_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t cgroup_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void cgroup_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void cgroup_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void cgroup_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int cgroup_ns_inum = 0;
#include <lttng/tracer.h>
static
-size_t cpu_id_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t cpu_id_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void cpu_id_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void cpu_id_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void cpu_id_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = smp_processor_id();
#include <wrapper/user_namespace.h>
static
-size_t egid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t egid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void egid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void egid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void egid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_egid();
#include <wrapper/user_namespace.h>
static
-size_t euid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t euid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void euid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void euid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void euid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_euid();
#include <wrapper/user_namespace.h>
static
-size_t gid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t gid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void gid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void gid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void gid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_gid();
#define LTTNG_HOSTNAME_CTX_LEN (__NEW_UTS_LEN + 1)
static
-size_t hostname_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t hostname_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void hostname_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void hostname_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void hostname_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
struct nsproxy *nsproxy;
*/
static
-size_t interruptible_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t interruptible_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void interruptible_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void interruptible_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
- struct lttng_probe_ctx *lttng_probe_ctx = ctx->probe_ctx;
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx = ctx->probe_ctx;
int8_t interruptible = lttng_probe_ctx->interruptible;
lib_ring_buffer_align_ctx(ctx, lttng_alignof(interruptible));
static
void interruptible_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
int8_t interruptible = lttng_probe_ctx->interruptible;
(LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
static
-size_t ipc_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t ipc_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void ipc_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void ipc_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void ipc_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int ipc_ns_inum = 0;
#include <lttng/tracer.h>
static
-size_t migratable_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t migratable_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void migratable_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void migratable_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void migratable_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = !current->migrate_disable;
#include <../fs/mount.h>
static
-size_t mnt_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t mnt_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void mnt_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void mnt_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void mnt_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int mnt_ns_inum = 0;
#include <lttng/tracer.h>
static
-size_t need_reschedule_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t need_reschedule_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void need_reschedule_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void need_reschedule_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void need_reschedule_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = test_tsk_need_resched(current);;
(LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
static
-size_t net_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t net_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void net_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void net_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void net_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int net_ns_inum = 0;
#include <lttng/tracer.h>
static
-size_t nice_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t nice_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void nice_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void nice_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void nice_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = task_nice(current);
#include <lttng/tracer.h>
static
-size_t perf_counter_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t perf_counter_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void perf_counter_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void perf_counter_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
(LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
static
-size_t pid_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t pid_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void pid_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void pid_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void pid_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
struct pid_namespace *ns;
#include <lttng/tracer.h>
static
-size_t pid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t pid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void pid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void pid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void pid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = task_tgid_nr(current);
#include <lttng/tracer.h>
static
-size_t ppid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t ppid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void ppid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void ppid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void ppid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
pid_t ppid;
#define LTTNG_PREEMPT_DISABLE_NESTING 2
static
-size_t preemptible_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t preemptible_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void preemptible_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void preemptible_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void preemptible_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
int pc = preempt_count();
}
static
-size_t prio_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t prio_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void prio_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void prio_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void prio_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = wrapper_task_prio_sym(current);
#include <lttng/endian.h>
static
-size_t procname_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t procname_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
* could lead to crash in IRQ context and deadlock of the lockdep tracer.
*/
static
-void procname_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void procname_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void procname_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.str = current->comm;
#include <wrapper/user_namespace.h>
static
-size_t sgid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t sgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void sgid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void sgid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void sgid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_sgid();
#include <wrapper/user_namespace.h>
static
-size_t suid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t suid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void suid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void suid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void suid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_suid();
#include <lttng/tracer.h>
static
-size_t tid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t tid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void tid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void tid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void tid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
pid_t tid;
#if defined(CONFIG_TIME_NS)
static
-size_t time_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t time_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void time_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void time_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void time_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int time_ns_inum = 0;
#include <wrapper/user_namespace.h>
static
-size_t uid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t uid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void uid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void uid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void uid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_uid();
(LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
static
-size_t user_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t user_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void user_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void user_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void user_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int user_ns_inum = 0;
(LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0))
static
-size_t uts_ns_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t uts_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void uts_ns_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void uts_ns_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void uts_ns_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
unsigned int uts_ns_inum = 0;
#include <wrapper/user_namespace.h>
static
-size_t vegid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vegid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vegid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vegid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vegid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_vegid();
#include <wrapper/user_namespace.h>
static
-size_t veuid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t veuid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void veuid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void veuid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void veuid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_veuid();
#include <wrapper/user_namespace.h>
static
-size_t vgid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vgid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vgid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vgid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_vgid();
#include <lttng/tracer.h>
static
-size_t vpid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vpid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vpid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vpid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vpid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
pid_t vpid;
#include <lttng/tracer.h>
static
-size_t vppid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vppid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vppid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vppid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vppid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
struct task_struct *parent;
#include <wrapper/user_namespace.h>
static
-size_t vsgid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vsgid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vsgid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vsgid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vsgid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_vsgid();
#include <wrapper/user_namespace.h>
static
-size_t vsuid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vsuid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vsuid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vsuid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vsuid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_vsuid();
#include <lttng/tracer.h>
static
-size_t vtid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vtid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vtid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vtid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vtid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
pid_t vtid;
#include <wrapper/user_namespace.h>
static
-size_t vuid_get_size(void *priv, struct lttng_probe_ctx *probe_ctx, size_t offset)
+size_t vuid_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset)
{
size_t size = 0;
}
static
-void vuid_record(void *priv, struct lttng_probe_ctx *probe_ctx,
+void vuid_record(void *priv, struct lttng_kernel_probe_ctx *probe_ctx,
struct lib_ring_buffer_ctx *ctx,
struct lttng_channel *chan)
{
static
void vuid_get_value(void *priv,
- struct lttng_probe_ctx *lttng_probe_ctx,
+ struct lttng_kernel_probe_ctx *lttng_probe_ctx,
struct lttng_ctx_value *value)
{
value->u.s64 = lttng_current_vuid();
void lttng_event_notifier_notification_send(struct lttng_kernel_event_notifier *event_notifier,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
struct lttng_kernel_notification_ctx *notif_ctx)
{
struct lttng_event_notifier_notification notif = { 0 };
struct lttng_kernel_event_common_private *event_priv =
container_of(p, struct lttng_kernel_event_common_private, u.kprobe.kp);
struct lttng_kernel_event_common *event = event_priv->pub;
- struct lttng_probe_ctx lttng_probe_ctx = {
+ struct lttng_kernel_probe_ctx lttng_probe_ctx = {
.event = event,
.interruptible = !lttng_regs_irqs_disabled(regs),
};
struct lttng_krp *lttng_krp =
container_of(lttng_get_kretprobe(krpi), struct lttng_krp, krp);
struct lttng_kernel_event_common *event = lttng_krp->event[type];
- struct lttng_probe_ctx lttng_probe_ctx = {
+ struct lttng_kernel_probe_ctx lttng_probe_ctx = {
.event = event,
.interruptible = !lttng_regs_irqs_disabled(regs),
};
struct lttng_uprobe_handler *uprobe_handler =
container_of(uc, struct lttng_uprobe_handler, up_consumer);
struct lttng_kernel_event_common *event = uprobe_handler->event;
- struct lttng_probe_ctx lttng_probe_ctx = {
+ struct lttng_kernel_probe_ctx lttng_probe_ctx = {
.event = event,
.interruptible = !lttng_regs_irqs_disabled(regs),
};