projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Install easy-ust and gen-tp examples in doc/
[lttng-ust.git]
/
liblttng-ust-ctl
/
ustctl.c
diff --git
a/liblttng-ust-ctl/ustctl.c
b/liblttng-ust-ctl/ustctl.c
index fc7f57ca265173439fd4277e9ccbdf2107240ee2..964a5586677a3dc4c68d9046a8fa9a51bac1b39c 100644
(file)
--- a/
liblttng-ust-ctl/ustctl.c
+++ b/
liblttng-ust-ctl/ustctl.c
@@
-17,6
+17,7
@@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#define _GNU_SOURCE
#include <string.h>
#include <lttng/ust-ctl.h>
#include <lttng/ust-abi.h>
#include <string.h>
#include <lttng/ust-ctl.h>
#include <lttng/ust-abi.h>
@@
-331,6
+332,8
@@
int ustctl_create_event(int sock, struct lttng_ust_event *ev,
strncpy(lum.u.event.name, ev->name,
LTTNG_UST_SYM_NAME_LEN);
lum.u.event.instrumentation = ev->instrumentation;
strncpy(lum.u.event.name, ev->name,
LTTNG_UST_SYM_NAME_LEN);
lum.u.event.instrumentation = ev->instrumentation;
+ lum.u.event.loglevel_type = ev->loglevel_type;
+ lum.u.event.loglevel = ev->loglevel;
ret = ustcomm_send_app_cmd(sock, &lum, &lur);
if (ret) {
free(event_data);
ret = ustcomm_send_app_cmd(sock, &lum, &lur);
if (ret) {
free(event_data);
@@
-450,10
+453,9
@@
int ustctl_tracepoint_list_get(int sock, int tp_list_handle,
ret = ustcomm_send_app_cmd(sock, &lum, &lur);
if (ret)
return ret;
ret = ustcomm_send_app_cmd(sock, &lum, &lur);
if (ret)
return ret;
- DBG("received tracepoint list entry name %s loglevel %
s loglevel_value %ll
d",
+ DBG("received tracepoint list entry name %s loglevel %d",
lur.u.tracepoint.name,
lur.u.tracepoint.name,
- lur.u.tracepoint.loglevel,
- (unsigned long long) lur.u.tracepoint.loglevel_value);
+ lur.u.tracepoint.loglevel);
memcpy(iter, &lur.u.tracepoint, sizeof(*iter));
return 0;
}
memcpy(iter, &lur.u.tracepoint, sizeof(*iter));
return 0;
}
This page took
0.027464 seconds
and
4
git commands to generate.