projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng-ctl: Add error query interface
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 1147296ad3357e21d4fd169ef54f73c78f13512f..09fdaf40aaa172356dc7957c5ea072e99a7d0e04 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-22,6
+22,7
@@
#include <assert.h>
#include <signal.h>
#include <assert.h>
#include <signal.h>
+#include <common/bytecode/bytecode.h>
#include <common/lttng-kernel.h>
#include <common/common.h>
#include <common/utils.h>
#include <common/lttng-kernel.h>
#include <common/common.h>
#include <common/utils.h>
@@
-37,7
+38,6
@@
#include <common/sessiond-comm/sessiond-comm.h>
#include <common/filter/filter-ast.h>
#include <common/sessiond-comm/sessiond-comm.h>
#include <common/filter/filter-ast.h>
-#include <common/filter/filter-bytecode.h>
#include "runas.h"
#include "runas.h"
@@
-1800,13
+1800,13
@@
error:
LTTNG_HIDDEN
int run_as_generate_filter_bytecode(const char *filter_expression,
const struct lttng_credentials *creds,
LTTNG_HIDDEN
int run_as_generate_filter_bytecode(const char *filter_expression,
const struct lttng_credentials *creds,
- struct lttng_
filter_
bytecode **bytecode)
+ struct lttng_bytecode **bytecode)
{
int ret;
struct run_as_data data = {};
struct run_as_ret run_as_ret = {};
{
int ret;
struct run_as_data data = {};
struct run_as_ret run_as_ret = {};
- const struct lttng_
filter_
bytecode *view_bytecode = NULL;
- struct lttng_
filter_
bytecode *local_bytecode = NULL;
+ const struct lttng_bytecode *view_bytecode = NULL;
+ struct lttng_bytecode *local_bytecode = NULL;
const uid_t uid = lttng_credentials_get_uid(creds);
const gid_t gid = lttng_credentials_get_gid(creds);
const uid_t uid = lttng_credentials_get_uid(creds);
const gid_t gid = lttng_credentials_get_gid(creds);
@@
-1826,7
+1826,7
@@
int run_as_generate_filter_bytecode(const char *filter_expression,
goto error;
}
goto error;
}
- view_bytecode = (const struct lttng_
filter_
bytecode *) run_as_ret.u.generate_filter_bytecode.bytecode;
+ view_bytecode = (const struct lttng_bytecode *) run_as_ret.u.generate_filter_bytecode.bytecode;
local_bytecode = zmalloc(sizeof(*local_bytecode) + view_bytecode->len);
if (!local_bytecode) {
local_bytecode = zmalloc(sizeof(*local_bytecode) + view_bytecode->len);
if (!local_bytecode) {
This page took
0.024992 seconds
and
4
git commands to generate.