projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use negative value for error code of lttng_ust_ctl_duplicate_ust_object_data
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
lttng-bytecode.c
diff --git
a/src/lib/lttng-ust/lttng-bytecode.c
b/src/lib/lttng-ust/lttng-bytecode.c
index 68108192d08158ca68e868e76fdcf590778862a5..099fc5ca5bab4d444f328fc2fa0ae9991cefe749 100644
(file)
--- a/
src/lib/lttng-ust/lttng-bytecode.c
+++ b/
src/lib/lttng-ust/lttng-bytecode.c
@@
-14,8
+14,9
@@
#include "context-internal.h"
#include "lttng-bytecode.h"
#include "context-internal.h"
#include "lttng-bytecode.h"
-#include "
ust-events-internal
.h"
+#include "
lib/lttng-ust/events
.h"
#include "common/macros.h"
#include "common/macros.h"
+#include "common/tracer.h"
static const char *opnames[] = {
[ BYTECODE_OP_UNKNOWN ] = "UNKNOWN",
static const char *opnames[] = {
[ BYTECODE_OP_UNKNOWN ] = "UNKNOWN",
@@
-179,7
+180,7
@@
int apply_field_reloc(const struct lttng_ust_event_desc *event_desc,
const char *field_name,
enum bytecode_op bytecode_op)
{
const char *field_name,
enum bytecode_op bytecode_op)
{
- const struct lttng_ust_event_field **fields, *field = NULL;
+ const struct lttng_ust_event_field *
const
*fields, *field = NULL;
unsigned int nr_fields, i;
struct load_op *op;
uint32_t field_offset = 0;
unsigned int nr_fields, i;
struct load_op *op;
uint32_t field_offset = 0;
@@
-189,10
+190,10
@@
int apply_field_reloc(const struct lttng_ust_event_desc *event_desc,
/* Lookup event by name */
if (!event_desc)
return -EINVAL;
/* Lookup event by name */
if (!event_desc)
return -EINVAL;
- fields = event_desc->fields;
+ fields = event_desc->
tp_class->
fields;
if (!fields)
return -EINVAL;
if (!fields)
return -EINVAL;
- nr_fields = event_desc->nr_fields;
+ nr_fields = event_desc->
tp_class->
nr_fields;
for (i = 0; i < nr_fields; i++) {
if (fields[i]->nofilter) {
continue;
for (i = 0; i < nr_fields; i++) {
if (fields[i]->nofilter) {
continue;
This page took
0.026956 seconds
and
4
git commands to generate.