- struct lttng_userspace_probe_location *userspace_probe_location;
- struct lttng_userspace_probe_location_lookup_method *lookup_method;
+ const struct lttng_userspace_probe_location *userspace_probe_location;
+ const struct lttng_userspace_probe_location_lookup_method *lookup_method;
enum lttng_userspace_probe_location_lookup_method_type lookup_type;
/* Get userspace probe location from the event. */
enum lttng_userspace_probe_location_lookup_method_type lookup_type;
/* Get userspace probe location from the event. */
- struct lttng_userspace_probe_location *userspace_probe_location;
- struct lttng_userspace_probe_location_lookup_method *lookup_method;
+ const struct lttng_userspace_probe_location *userspace_probe_location;
+ const struct lttng_userspace_probe_location_lookup_method *lookup_method;
enum lttng_userspace_probe_location_lookup_method_type lookup_type;
/* Get userspace probe location from the event. */
enum lttng_userspace_probe_location_lookup_method_type lookup_type;
/* Get userspace probe location from the event. */
ret = config_writer_open_element(writer,
config_element_rotation_schedules);
ret = config_writer_open_element(writer,
config_element_rotation_schedules);
if (session->rotate_timer_period) {
ret = save_session_rotation_schedule(writer,
LTTNG_ROTATION_SCHEDULE_TYPE_PERIODIC,
if (session->rotate_timer_period) {
ret = save_session_rotation_schedule(writer,
LTTNG_ROTATION_SCHEDULE_TYPE_PERIODIC,
int save_session(struct ltt_session *session,
struct lttng_save_session_attr *attr, lttng_sock_cred *creds)
{
int save_session(struct ltt_session *session,
struct lttng_save_session_attr *attr, lttng_sock_cred *creds)
{
if (!session_access_ok(session,
LTTNG_SOCK_GET_UID_CRED(creds),
if (!session_access_ok(session,
LTTNG_SOCK_GET_UID_CRED(creds),
struct ltt_session_list *list = session_get_list();
cds_list_for_each_entry(session, &list->head, list) {
struct ltt_session_list *list = session_get_list();
cds_list_for_each_entry(session, &list->head, list) {