projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: reset procname on fork in child process
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-abi.c
diff --git
a/liblttng-ust/lttng-ust-abi.c
b/liblttng-ust/lttng-ust-abi.c
index c5cc42b727c107a26d1466cea45227072643aa0c..4fbf15c6543aeb55faf8e433eb2a9fedd6fdc9f3 100644
(file)
--- a/
liblttng-ust/lttng-ust-abi.c
+++ b/
liblttng-ust/lttng-ust-abi.c
@@
-37,6
+37,7
@@
* - Takes instrumentation source specific arguments.
*/
* - Takes instrumentation source specific arguments.
*/
+#define _LGPL_SOURCE
#include <lttng/ust-abi.h>
#include <lttng/ust-error.h>
#include <urcu/compiler.h>
#include <lttng/ust-abi.h>
#include <lttng/ust-error.h>
#include <urcu/compiler.h>
@@
-44,6
+45,7
@@
#include <lttng/ust-events.h>
#include <lttng/ust-version.h>
#include <lttng/tracepoint.h>
#include <lttng/ust-events.h>
#include <lttng/ust-version.h>
#include <lttng/tracepoint.h>
+#include <ust-fd.h>
#include "tracepoint-internal.h"
#include <usterr-signal-safe.h>
#include <helper.h>
#include "tracepoint-internal.h"
#include <usterr-signal-safe.h>
#include <helper.h>
@@
-335,9
+337,10
@@
long lttng_abi_tracer_version(int objd,
static
long lttng_abi_add_context(int objd,
struct lttng_ust_context *context_param,
static
long lttng_abi_add_context(int objd,
struct lttng_ust_context *context_param,
+ union ust_args *uargs,
struct lttng_ctx **ctx, struct lttng_session *session)
{
struct lttng_ctx **ctx, struct lttng_session *session)
{
- return lttng_attach_context(context_param, ctx, session);
+ return lttng_attach_context(context_param,
uargs,
ctx, session);
}
/**
}
/**
@@
-512,7
+515,6
@@
int lttng_abi_map_channel(int session_objd,
/* error path after channel was created */
objd_error:
notransport:
/* error path after channel was created */
objd_error:
notransport:
- free(lttng_chan);
alloc_error:
channel_destroy(chan, channel_handle, 0);
return ret;
alloc_error:
channel_destroy(chan, channel_handle, 0);
return ret;
@@
-527,7
+529,9
@@
invalid:
{
int close_ret;
{
int close_ret;
+ lttng_ust_lock_fd_tracker();
close_ret = close(wakeup_fd);
close_ret = close(wakeup_fd);
+ lttng_ust_unlock_fd_tracker();
if (close_ret) {
PERROR("close");
}
if (close_ret) {
PERROR("close");
}
@@
-572,6
+576,8
@@
long lttng_session_cmd(int objd, unsigned int cmd, unsigned long arg,
case LTTNG_UST_SESSION_STOP:
case LTTNG_UST_DISABLE:
return lttng_session_disable(session);
case LTTNG_UST_SESSION_STOP:
case LTTNG_UST_DISABLE:
return lttng_session_disable(session);
+ case LTTNG_UST_SESSION_STATEDUMP:
+ return lttng_session_statedump(session);
default:
return -EINVAL;
}
default:
return -EINVAL;
}
@@
-885,7
+891,7
@@
long lttng_channel_cmd(int objd, unsigned int cmd, unsigned long arg,
}
case LTTNG_UST_CONTEXT:
return lttng_abi_add_context(objd,
}
case LTTNG_UST_CONTEXT:
return lttng_abi_add_context(objd,
- (struct lttng_ust_context *) arg,
+ (struct lttng_ust_context *) arg,
uargs,
&channel->ctx, channel->session);
case LTTNG_UST_ENABLE:
return lttng_channel_enable(channel);
&channel->ctx, channel->session);
case LTTNG_UST_ENABLE:
return lttng_channel_enable(channel);
This page took
0.025046 seconds
and
4
git commands to generate.