From: Mathieu Desnoyers Date: Mon, 7 Nov 2022 21:17:31 +0000 (-0500) Subject: access pointer -> address X-Git-Url: http://git.efficios.com/?p=libside.git;a=commitdiff_plain;h=fb8c26c90ae3b651be387f7590b2671a073eaa6a access pointer -> address Signed-off-by: Mathieu Desnoyers --- diff --git a/src/test.c b/src/test.c index 13419ad..81e3088 100644 --- a/src/test.c +++ b/src/test.c @@ -1520,7 +1520,7 @@ static side_define_struct(mystructgatherdef, side_static_event(my_provider_event_structgather, "myprovider", "myeventstructgather", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("structgather", &mystructgatherdef, 0, sizeof(struct test), - SIDE_TYPE_GATHER_ACCESS_POINTER), + SIDE_TYPE_GATHER_ACCESS_ADDRESS), side_field_gather_signed_integer("intgather", 0, 32, 0, 32, SIDE_TYPE_GATHER_ACCESS_ADDRESS, side_attr_list(side_attr("std.integer.base", side_attr_u8(10)))), #if __HAVE_FLOAT32 @@ -1615,7 +1615,7 @@ side_static_event(my_provider_event_structgather_nest, "myprovider", "myeventstructgathernest", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("nest0", &mystructgathernest0, 0, - sizeof(struct testnest0), SIDE_TYPE_GATHER_ACCESS_POINTER), + sizeof(struct testnest0), SIDE_TYPE_GATHER_ACCESS_ADDRESS), ), side_attr_list() ); @@ -1688,7 +1688,7 @@ side_static_event(my_provider_event_structgatherfloat, "myprovider", "myeventstructgatherfloat", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("structgatherfloat", &mystructgatherfloat, 0, - sizeof(struct testfloat), SIDE_TYPE_GATHER_ACCESS_POINTER), + sizeof(struct testfloat), SIDE_TYPE_GATHER_ACCESS_ADDRESS), ), side_attr_list() ); @@ -1744,11 +1744,11 @@ side_static_event(my_provider_event_structgatherarray, "myprovider", "myeventstructgatherarray", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("structgatherarray", &mystructgatherarray, 0, - sizeof(struct testarray), SIDE_TYPE_GATHER_ACCESS_POINTER), + sizeof(struct testarray), SIDE_TYPE_GATHER_ACCESS_ADDRESS), side_field_gather_array("array2", side_elem(side_type_gather_unsigned_integer(0, 16, 0, 16, SIDE_TYPE_GATHER_ACCESS_ADDRESS, side_attr_list())), SIDE_ARRAY_SIZE(mygatherarray2), 0, - SIDE_TYPE_GATHER_ACCESS_POINTER, + SIDE_TYPE_GATHER_ACCESS_ADDRESS, side_attr_list() ), ), @@ -1833,7 +1833,7 @@ side_static_event(my_provider_event_gatherstructnest, "myprovider", "myeventgatherstructnest", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("structgather", &mystructgatherstructnest0, 0, - sizeof(struct testgatherstructnest0), SIDE_TYPE_GATHER_ACCESS_POINTER), + sizeof(struct testgatherstructnest0), SIDE_TYPE_GATHER_ACCESS_ADDRESS), ), side_attr_list() ); @@ -1898,7 +1898,7 @@ side_static_event(my_provider_event_gathervla, "myprovider", "myeventgathervla", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("structgathervla", &mystructgathervla, 0, - sizeof(struct testgathervla), SIDE_TYPE_GATHER_ACCESS_POINTER), + sizeof(struct testgathervla), SIDE_TYPE_GATHER_ACCESS_ADDRESS), ), side_attr_list() ); @@ -1944,7 +1944,7 @@ side_static_event(my_provider_event_gathervlaflex, "myprovider", "myeventgathervlaflex", SIDE_LOGLEVEL_DEBUG, side_field_list( side_field_gather_struct("structgathervlaflex", &mystructgathervlaflex, 0, - sizeof(struct testgathervlaflex), SIDE_TYPE_GATHER_ACCESS_POINTER), + sizeof(struct testgathervlaflex), SIDE_TYPE_GATHER_ACCESS_ADDRESS), ), side_attr_list() ); @@ -1976,10 +1976,10 @@ void test_gather_vla_flex(void) side_static_event(my_provider_event_gatherbyte, "myprovider", "myeventgatherbyte", SIDE_LOGLEVEL_DEBUG, side_field_list( - side_field_gather_byte("byte", 0, SIDE_TYPE_GATHER_ACCESS_POINTER, side_attr_list()), + side_field_gather_byte("byte", 0, SIDE_TYPE_GATHER_ACCESS_ADDRESS, side_attr_list()), side_field_gather_array("array", side_elem(side_type_gather_byte(0, SIDE_TYPE_GATHER_ACCESS_ADDRESS, side_attr_list())), - 3, 0, SIDE_TYPE_GATHER_ACCESS_POINTER, side_attr_list() + 3, 0, SIDE_TYPE_GATHER_ACCESS_ADDRESS, side_attr_list() ), ), side_attr_list() diff --git a/src/tracer.c b/src/tracer.c index 45ef594..70db610 100644 --- a/src/tracer.c +++ b/src/tracer.c @@ -908,13 +908,13 @@ void tracer_print_type(const struct side_type *type_desc, const struct side_arg tracer_print_struct(type_desc, item->u.side_static.side_struct); break; case SIDE_TYPE_GATHER_STRUCT: - (void) tracer_print_gather_struct(&type_desc->u.side_gather, &item->u.side_static.side_struct_gather_ptr); + (void) tracer_print_gather_struct(&type_desc->u.side_gather, item->u.side_static.side_struct_gather_ptr); break; case SIDE_TYPE_GATHER_ARRAY: - (void) tracer_print_gather_array(&type_desc->u.side_gather, &item->u.side_static.side_array_gather_ptr); + (void) tracer_print_gather_array(&type_desc->u.side_gather, item->u.side_static.side_array_gather_ptr); break; case SIDE_TYPE_GATHER_BYTE: - (void) tracer_print_gather_byte_type(&type_desc->u.side_gather, &item->u.side_static.side_byte_gather_ptr); + (void) tracer_print_gather_byte_type(&type_desc->u.side_gather, item->u.side_static.side_byte_gather_ptr); break; case SIDE_TYPE_GATHER_UNSIGNED_INT: case SIDE_TYPE_GATHER_SIGNED_INT: