4 #include <linux/types.h>
9 AT_TIZEN_NATIVE_APP = 0x01,
18 /* Basic application information */
19 struct app_info_data {
20 enum APP_TYPE app_type;
25 /* Configuration struct */
32 /* Application and library functions to set probes */
33 struct func_inst_data {
39 struct lib_inst_data {
42 struct func_inst_data **func;
45 /* Application struct */
46 struct app_inst_data {
47 struct app_info_data *app_info;
49 struct func_inst_data **func;
51 struct lib_inst_data **lib;
54 /* User space instrumentation struct */
57 struct app_inst_data **app_inst;
61 struct app_info_data *create_app_info(struct msg_buf *mb);
62 void destroy_app_info(struct app_info_data *app_info);
64 struct conf_data *create_conf_data(struct msg_buf *mb);
65 void destroy_conf_data(struct conf_data *conf);
67 struct func_inst_data *create_func_inst_data(struct msg_buf *mb);
68 void destroy_func_inst_data(struct func_inst_data *func_inst);
70 struct lib_inst_data *create_lib_inst_data(struct msg_buf *mb);
71 void destroy_lib_inst_data(struct lib_inst_data *lib_inst);
73 struct app_inst_data *create_app_inst_data(struct msg_buf *mb);
74 void destroy_app_inst_data(struct app_inst_data *app_inst);
76 struct us_inst_data *create_us_inst_data(struct msg_buf *mb);
77 void destroy_us_inst_data(struct us_inst_data *us_inst);
80 /* empty functions for calculating size fields in structures */
81 struct func_inst_data make_func_inst_data(void);
82 struct lib_inst_data make_lib_inst_data(void);
83 struct app_inst_data make_app_inst_data(void);
84 struct us_inst_data make_us_inst_data(void);
88 MIN_SIZE_FUNC_INST = sizeof(make_func_inst_data().addr) +
90 MIN_SIZE_LIB_INST = MIN_SIZE_STRING +
91 sizeof(make_lib_inst_data().cnt_func),
92 MIN_SIZE_APP_INFO = SIZE_APP_TYPE + MIN_SIZE_STRING + MIN_SIZE_STRING,
93 MIN_SIZE_APP_INST = MIN_SIZE_APP_INFO +
94 sizeof(make_app_inst_data().cnt_func) +
95 sizeof(make_app_inst_data().cnt_lib),
96 MIN_SIZE_US_INST = sizeof(make_us_inst_data().cnt)
99 #endif /* _MSG_PARSER_H */