projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 3c4c2ae0bb9d360141c3ed5dbb60fbc6a420e8ab..731b450080d4dc11cb25c9b1c6bec4c3955e3c19 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-23,6
+23,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"
@@
-1801,13
+1801,13
@@
LTTNG_HIDDEN
int run_as_generate_filter_bytecode(const char *filter_expression,
uid_t uid,
gid_t gid,
int run_as_generate_filter_bytecode(const char *filter_expression,
uid_t uid,
gid_t gid,
- 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;
DBG3("generate_filter_bytecode() from expression=\"%s\" for uid %d and gid %d",
filter_expression, (int) uid, (int) gid);
DBG3("generate_filter_bytecode() from expression=\"%s\" for uid %d and gid %d",
filter_expression, (int) uid, (int) gid);
@@
-1825,7
+1825,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.024923 seconds
and
5
git commands to generate.