projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
relayd protocol: reply path for close chunk and create session 2.11
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index d2edfd5ce4248062457432ff123498b582a9dfba..8c9277cae225ea80e9df7bf106d304a529e71769 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-1832,15
+1832,12
@@
static void shadow_copy_channel(struct ust_app_channel *ua_chan,
static void shadow_copy_session(struct ust_app_session *ua_sess,
struct ltt_ust_session *usess, struct ust_app *app)
{
static void shadow_copy_session(struct ust_app_session *ua_sess,
struct ltt_ust_session *usess, struct ust_app *app)
{
- time_t rawtime;
struct tm *timeinfo;
char datetime[16];
int ret;
char tmp_shm_path[PATH_MAX];
struct tm *timeinfo;
char datetime[16];
int ret;
char tmp_shm_path[PATH_MAX];
- /* Get date and time for unique app path */
- time(&rawtime);
- timeinfo = localtime(&rawtime);
+ timeinfo = localtime(&app->registration_time);
strftime(datetime, sizeof(datetime), "%Y%m%d-%H%M%S", timeinfo);
DBG2("Shadow copy of session handle %d", ua_sess->handle);
strftime(datetime, sizeof(datetime), "%Y%m%d-%H%M%S", timeinfo);
DBG2("Shadow copy of session handle %d", ua_sess->handle);
@@
-3377,6
+3374,8
@@
void ust_app_add(struct ust_app *app)
assert(app);
assert(app->notify_sock >= 0);
assert(app);
assert(app->notify_sock >= 0);
+ app->registration_time = time(NULL);
+
rcu_read_lock();
/*
rcu_read_lock();
/*
@@
-5877,7
+5876,7
@@
void ust_app_destroy(struct ust_app *app)
*/
enum lttng_error_code ust_app_snapshot_record(
const struct ltt_ust_session *usess,
*/
enum lttng_error_code ust_app_snapshot_record(
const struct ltt_ust_session *usess,
- const struct
snapshot
_output *output, int wait,
+ const struct
consumer
_output *output, int wait,
uint64_t nb_packets_per_stream)
{
int ret = 0;
uint64_t nb_packets_per_stream)
{
int ret = 0;
@@
-5965,7
+5964,7
@@
enum lttng_error_code ust_app_snapshot_record(
/* Get the right consumer socket for the application. */
socket = consumer_find_socket_by_bitness(app->bits_per_long,
/* Get the right consumer socket for the application. */
socket = consumer_find_socket_by_bitness(app->bits_per_long,
- output
->consumer
);
+ output);
if (!socket) {
status = LTTNG_ERR_INVALID;
goto error;
if (!socket) {
status = LTTNG_ERR_INVALID;
goto error;
This page took
0.025895 seconds
and
4
git commands to generate.