projects
/
deliverable
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bytecode: Add `OBJECT_TYPE_{UN,}SIGNED_ENUM` type
[deliverable/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 55b2ebf221687be36d8c4f306b8e85b8a2cbd70c..15a45b93947fb19f9ae057984f6307c98befb45c 100644
(file)
--- a/
liblttng-ust/lttng-bytecode-specialize.c
+++ b/
liblttng-ust/lttng-bytecode-specialize.c
@@
-155,6
+155,10
@@
static int specialize_load_field(struct vstack_entry *stack_top,
if (!stack_top->load.rev_bo)
insn->op = BYTECODE_OP_LOAD_FIELD_S64;
break;
if (!stack_top->load.rev_bo)
insn->op = BYTECODE_OP_LOAD_FIELD_S64;
break;
+ case OBJECT_TYPE_SIGNED_ENUM:
+ dbg_printf("op load field signed enumeration\n");
+ stack_top->type = REG_PTR;
+ break;
case OBJECT_TYPE_U8:
dbg_printf("op load field u8\n");
stack_top->type = REG_U64;
case OBJECT_TYPE_U8:
dbg_printf("op load field u8\n");
stack_top->type = REG_U64;
@@
-178,6
+182,10
@@
static int specialize_load_field(struct vstack_entry *stack_top,
if (!stack_top->load.rev_bo)
insn->op = BYTECODE_OP_LOAD_FIELD_U64;
break;
if (!stack_top->load.rev_bo)
insn->op = BYTECODE_OP_LOAD_FIELD_U64;
break;
+ case OBJECT_TYPE_UNSIGNED_ENUM:
+ dbg_printf("op load field unsigned enumeration\n");
+ stack_top->type = REG_PTR;
+ break;
case OBJECT_TYPE_DOUBLE:
stack_top->type = REG_DOUBLE;
insn->op = BYTECODE_OP_LOAD_FIELD_DOUBLE;
case OBJECT_TYPE_DOUBLE:
stack_top->type = REG_DOUBLE;
insn->op = BYTECODE_OP_LOAD_FIELD_DOUBLE;
@@
-416,9
+424,9
@@
static int specialize_load_object(const struct lttng_event_field *field,
itype = &field->type.u.enum_nestable.container_type->u.integer;
}
if (itype->signedness)
itype = &field->type.u.enum_nestable.container_type->u.integer;
}
if (itype->signedness)
- load->object_type = OBJECT_TYPE_S
64
;
+ load->object_type = OBJECT_TYPE_S
IGNED_ENUM
;
else
else
- load->object_type = OBJECT_TYPE_U
64
;
+ load->object_type = OBJECT_TYPE_U
NSIGNED_ENUM
;
load->rev_bo = false;
break;
}
load->rev_bo = false;
break;
}
This page took
0.024595 seconds
and
5
git commands to generate.