projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: add fallthrough annotations (-Wimplicit-fallthrough)
[lttng-ust.git]
/
liblttng-ust
/
lttng-bytecode-specialize.c
diff --git
a/liblttng-ust/lttng-bytecode-specialize.c
b/liblttng-ust/lttng-bytecode-specialize.c
index cb7480b3f9ccef3ac514c8b6a686dcf61a8d9dd6..44eafb858ac45b24eb44a07240920b9fb1eb0753 100644
(file)
--- a/
liblttng-ust/lttng-bytecode-specialize.c
+++ b/
liblttng-ust/lttng-bytecode-specialize.c
@@
-7,10
+7,11
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
+#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <stddef.h>
#include <stdint.h>
-#include <lttng/
align
.h>
+#include <lttng/
ust-utils
.h>
#include "context-internal.h"
#include "lttng-bytecode.h"
#include "context-internal.h"
#include "lttng-bytecode.h"
@@
-374,7
+375,7
@@
static int specialize_context_lookup_name(struct lttng_ust_ctx *ctx,
const char *name;
offset = ((struct get_symbol *) insn->data)->offset;
const char *name;
offset = ((struct get_symbol *) insn->data)->offset;
- name = bytecode->p.
priv->bc->bc.data + bytecode->p.priv->
bc->bc.reloc_offset + offset;
+ name = bytecode->p.
bc->bc.data + bytecode->p.
bc->bc.reloc_offset + offset;
return lttng_get_context_index(ctx, name);
}
return lttng_get_context_index(ctx, name);
}
@@
-503,7
+504,7
@@
static int specialize_app_context_lookup(struct lttng_ust_ctx **pctx,
ssize_t data_offset;
offset = ((struct get_symbol *) insn->data)->offset;
ssize_t data_offset;
offset = ((struct get_symbol *) insn->data)->offset;
- orig_name = runtime->p.
priv->bc->bc.data + runtime->p.priv->
bc->bc.reloc_offset + offset;
+ orig_name = runtime->p.
bc->bc.data + runtime->p.
bc->bc.reloc_offset + offset;
name = zmalloc(strlen(orig_name) + strlen("$app.") + 1);
if (!name) {
ret = -ENOMEM;
name = zmalloc(strlen(orig_name) + strlen("$app.") + 1);
if (!name) {
ret = -ENOMEM;
@@
-564,7
+565,7
@@
static int specialize_payload_lookup(struct lttng_ust_event_desc *event_desc,
nr_fields = event_desc->nr_fields;
offset = ((struct get_symbol *) insn->data)->offset;
nr_fields = event_desc->nr_fields;
offset = ((struct get_symbol *) insn->data)->offset;
- name = runtime->p.
priv->bc->bc.data + runtime->p.priv->
bc->bc.reloc_offset + offset;
+ name = runtime->p.
bc->bc.data + runtime->p.
bc->bc.reloc_offset + offset;
for (i = 0; i < nr_fields; i++) {
field = event_desc->fields[i];
if (field->nofilter) {
for (i = 0; i < nr_fields; i++) {
field = event_desc->fields[i];
if (field->nofilter) {
@@
-631,7
+632,7
@@
int lttng_bytecode_specialize(struct lttng_ust_event_desc *event_desc,
int ret = -EINVAL;
struct vstack _stack;
struct vstack *stack = &_stack;
int ret = -EINVAL;
struct vstack _stack;
struct vstack *stack = &_stack;
- struct lttng_ust_ctx **pctx = bytecode->p.p
riv->p
ctx;
+ struct lttng_ust_ctx **pctx = bytecode->p.pctx;
vstack_init(stack);
vstack_init(stack);
This page took
0.024226 seconds
and
4
git commands to generate.