2 * ltt-facility-loader-user_generic.c
5 * Mathieu Desnoyers (mathieu.desnoyers@polymtl.ca)
7 * Contains the LTT user space facility loader.
15 #include <ltt/ltt-usertrace.h>
16 #include "ltt-facility-loader-user_generic.h"
18 static struct user_facility_info facility
= {
19 .name
= LTT_FACILITY_NAME
,
20 .num_events
= LTT_FACILITY_NUM_EVENTS
,
22 .alignment
= sizeof(void*),
26 .checksum
= LTT_FACILITY_CHECKSUM
,
27 .int_size
= sizeof(int),
28 .long_size
= sizeof(long),
29 .pointer_size
= sizeof(void*),
30 .size_t_size
= sizeof(size_t)
33 static void __attribute__((constructor
)) __ltt_user_init(void)
37 printf("LTT : ltt-facility-user_generic init in userspace\n");
38 #endif //LTT_SHOW_DEBUG
40 err
= ltt_register_generic(<T_FACILITY_SYMBOL
, &facility
);
41 LTT_FACILITY_CHECKSUM_SYMBOL
= LTT_FACILITY_SYMBOL
;
45 perror("Error in ltt_register_generic");
46 #endif //LTT_SHOW_DEBUG