projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cygwin: Pass file paths instead of file descriptors over UNIX sockets
[lttng-ust.git]
/
include
/
ust-comm.h
diff --git
a/include/ust-comm.h
b/include/ust-comm.h
index 64d91c98653ab3ae1f35f18662f289f872327ac6..0b80a0ce2d522c9381a716ee60b4253d67aee41e 100644
(file)
--- a/
include/ust-comm.h
+++ b/
include/ust-comm.h
@@
-39,12
+39,13
@@
#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS 3000
#define LTTNG_RUNDIR "/var/run/lttng"
#define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS 3000
#define LTTNG_RUNDIR "/var/run/lttng"
+#define LTTNG_HOME_RUNDIR "%s/.lttng"
/* Default unix socket path */
#define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK LTTNG_RUNDIR "/client-lttng-sessiond"
#define DEFAULT_GLOBAL_APPS_UNIX_SOCK LTTNG_RUNDIR "/apps-lttng-sessiond"
/* Default unix socket path */
#define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK LTTNG_RUNDIR "/client-lttng-sessiond"
#define DEFAULT_GLOBAL_APPS_UNIX_SOCK LTTNG_RUNDIR "/apps-lttng-sessiond"
-#define DEFAULT_HOME_APPS_UNIX_SOCK
"%s/.
apps-lttng-sessiond"
-#define DEFAULT_HOME_CLIENT_UNIX_SOCK
"%s/.
client-lttng-sessiond"
+#define DEFAULT_HOME_APPS_UNIX_SOCK
LTTNG_HOME_RUNDIR "/
apps-lttng-sessiond"
+#define DEFAULT_HOME_CLIENT_UNIX_SOCK
LTTNG_HOME_RUNDIR "/
client-lttng-sessiond"
#define DEFAULT_GLOBAL_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait"
#define DEFAULT_HOME_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait-%u"
#define DEFAULT_GLOBAL_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait"
#define DEFAULT_HOME_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait-%u"
@@
-129,8
+130,7
@@
struct ustcomm_ust_msg {
struct lttng_ust_event event;
struct lttng_ust_context context;
struct lttng_ust_tracer_version version;
struct lttng_ust_event event;
struct lttng_ust_context context;
struct lttng_ust_tracer_version version;
- char tracepoint_list_entry[LTTNG_UST_SYM_NAME_LEN];
- struct lttng_ust_loglevel loglevel_list_entry;
+ struct lttng_ust_tracepoint_iter tracepoint;
} u;
};
} u;
};
@@
-151,8
+151,7
@@
struct ustcomm_ust_reply {
uint64_t memory_map_size;
} stream;
struct lttng_ust_tracer_version version;
uint64_t memory_map_size;
} stream;
struct lttng_ust_tracer_version version;
- char tracepoint_list_entry[LTTNG_UST_SYM_NAME_LEN];
- struct lttng_ust_loglevel loglevel_list_entry;
+ struct lttng_ust_tracepoint_iter tracepoint;
} u;
};
} u;
};
@@
-175,4
+174,8
@@
extern int ustcomm_send_app_cmd(int sock,
struct ustcomm_ust_reply *lur);
int ustcomm_recv_fd(int sock);
struct ustcomm_ust_reply *lur);
int ustcomm_recv_fd(int sock);
+/* Send/recv string over unix socket */
+extern ssize_t ustcomm_send_string(int sock, char *str, size_t len);
+extern char *ustcomm_recv_string(int sock);
+
#endif /* _LTTNG_UST_COMM_H */
#endif /* _LTTNG_UST_COMM_H */
This page took
0.02367 seconds
and
4
git commands to generate.