size_t align;
/* Flush pending memcpy */
- if(*len != 0) {
- if(buffer != NULL)
+ if (*len != 0) {
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, *from, *len);
}
*to += *len;
align = sizeof(char);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
/* Contains variable sized fields : must explode the structure */
size = strlen(obj) + 1; /* Include final NULL char. */
- if(buffer != NULL)
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, obj, size);
*to += size;
lttng_write_string_user_generic_string_data(buffer, to_base, to, from, len, lttng_param_data);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
const char *real_from;
const char **from = &real_from;
uint64_t tsc;
- size_t before_hdr_pad, after_hdr_pad, header_size;
-
- if(!trace) {
+ if (!trace) {
ltt_thread_init();
trace = thread_trace_info;
}
ltt_buf = ltt_get_channel_from_index(trace, index);
slot_size = 0;
buffer = ltt_reserve_slot(trace, ltt_buf,
- reserve_size, &slot_size, &tsc,
- &before_hdr_pad, &after_hdr_pad, &header_size);
- if(!buffer) goto end; /* buffer full */
+ reserve_size, &slot_size, &tsc);
+ if (!buffer)
+ goto end; /* buffer full */
*to_base = *to = *len = 0;
- ltt_write_event_header(trace, ltt_buf, buffer,
+ buffer = ltt_write_event_header(trace, ltt_buf, buffer,
ltt_facility_user_generic_B1865E44, event_user_generic_string,
- reserve_size, before_hdr_pad, tsc);
- *to_base += before_hdr_pad + after_hdr_pad + header_size;
-
+ reserve_size, tsc);
*from = (const char*)lttng_param_data;
lttng_write_string_user_generic_string_data(buffer, to_base, to, from, len, lttng_param_data);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
size_t align;
/* Flush pending memcpy */
- if(*len != 0) {
- if(buffer != NULL)
+ if (*len != 0) {
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, *from, *len);
}
*to += *len;
align = sizeof(char);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
/* Contains variable sized fields : must explode the structure */
size = strlen(obj) + 1; /* Include final NULL char. */
- if(buffer != NULL)
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, obj, size);
*to += size;
*from = (const char*)<tng_param_pointer;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
lttng_write_string_user_generic_string_pointer_string(buffer, to_base, to, from, len, lttng_param_string);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_pointer;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
const char *real_from;
const char **from = &real_from;
uint64_t tsc;
- size_t before_hdr_pad, after_hdr_pad, header_size;
-
- if(!trace) {
+ if (!trace) {
ltt_thread_init();
trace = thread_trace_info;
}
*from = (const char*)<tng_param_pointer;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
ltt_buf = ltt_get_channel_from_index(trace, index);
slot_size = 0;
buffer = ltt_reserve_slot(trace, ltt_buf,
- reserve_size, &slot_size, &tsc,
- &before_hdr_pad, &after_hdr_pad, &header_size);
- if(!buffer) goto end; /* buffer full */
+ reserve_size, &slot_size, &tsc);
+ if (!buffer)
+ goto end; /* buffer full */
*to_base = *to = *len = 0;
- ltt_write_event_header(trace, ltt_buf, buffer,
+ buffer = ltt_write_event_header(trace, ltt_buf, buffer,
ltt_facility_user_generic_B1865E44, event_user_generic_string_pointer,
- reserve_size, before_hdr_pad, tsc);
- *to_base += before_hdr_pad + after_hdr_pad + header_size;
-
+ reserve_size, tsc);
*from = (const char*)lttng_param_string;
lttng_write_string_user_generic_string_pointer_string(buffer, to_base, to, from, len, lttng_param_string);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_pointer;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
size_t align;
/* Flush pending memcpy */
- if(*len != 0) {
- if(buffer != NULL)
+ if (*len != 0) {
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, *from, *len);
}
*to += *len;
align = sizeof(char);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
/* Contains variable sized fields : must explode the structure */
size = strlen(obj) + 1; /* Include final NULL char. */
- if(buffer != NULL)
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, obj, size);
*to += size;
const char *real_from;
const char **from = &real_from;
uint64_t tsc;
- size_t before_hdr_pad, after_hdr_pad, header_size;
-
- if(!trace) {
+ if (!trace) {
ltt_thread_init();
trace = thread_trace_info;
}
ltt_buf = ltt_get_channel_from_index(trace, index);
slot_size = 0;
buffer = ltt_reserve_slot(trace, ltt_buf,
- reserve_size, &slot_size, &tsc,
- &before_hdr_pad, &after_hdr_pad, &header_size);
- if(!buffer) goto end; /* buffer full */
+ reserve_size, &slot_size, &tsc);
+ if (!buffer)
+ goto end; /* buffer full */
*to_base = *to = *len = 0;
- ltt_write_event_header(trace, ltt_buf, buffer,
+ buffer = ltt_write_event_header(trace, ltt_buf, buffer,
ltt_facility_user_generic_B1865E44, event_user_generic_slow_printf,
- reserve_size, before_hdr_pad, tsc);
- *to_base += before_hdr_pad + after_hdr_pad + header_size;
-
+ reserve_size, tsc);
*from = (const char*)lttng_param_string;
lttng_write_string_user_generic_slow_printf_string(buffer, to_base, to, from, len, lttng_param_string);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
const char *real_from;
const char **from = &real_from;
uint64_t tsc;
- size_t before_hdr_pad, after_hdr_pad, header_size;
-
- if(!trace) {
+ if (!trace) {
ltt_thread_init();
trace = thread_trace_info;
}
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
ltt_buf = ltt_get_channel_from_index(trace, index);
slot_size = 0;
buffer = ltt_reserve_slot(trace, ltt_buf,
- reserve_size, &slot_size, &tsc,
- &before_hdr_pad, &after_hdr_pad, &header_size);
- if(!buffer) goto end; /* buffer full */
+ reserve_size, &slot_size, &tsc);
+ if (!buffer)
+ goto end; /* buffer full */
*to_base = *to = *len = 0;
- ltt_write_event_header(trace, ltt_buf, buffer,
+ buffer = ltt_write_event_header(trace, ltt_buf, buffer,
ltt_facility_user_generic_B1865E44, event_user_generic_function_entry,
- reserve_size, before_hdr_pad, tsc);
- *to_base += before_hdr_pad + after_hdr_pad + header_size;
-
+ reserve_size, tsc);
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
const char *real_from;
const char **from = &real_from;
uint64_t tsc;
- size_t before_hdr_pad, after_hdr_pad, header_size;
-
- if(!trace) {
+ if (!trace) {
ltt_thread_init();
trace = thread_trace_info;
}
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
ltt_buf = ltt_get_channel_from_index(trace, index);
slot_size = 0;
buffer = ltt_reserve_slot(trace, ltt_buf,
- reserve_size, &slot_size, &tsc,
- &before_hdr_pad, &after_hdr_pad, &header_size);
- if(!buffer) goto end; /* buffer full */
+ reserve_size, &slot_size, &tsc);
+ if (!buffer)
+ goto end; /* buffer full */
*to_base = *to = *len = 0;
- ltt_write_event_header(trace, ltt_buf, buffer,
+ buffer = ltt_write_event_header(trace, ltt_buf, buffer,
ltt_facility_user_generic_B1865E44, event_user_generic_function_exit,
- reserve_size, before_hdr_pad, tsc);
- *to_base += before_hdr_pad + after_hdr_pad + header_size;
-
+ reserve_size, tsc);
*from = (const char*)<tng_param_this_fn;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
*from = (const char*)<tng_param_call_site;
align = sizeof(const void *);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
*len += sizeof(const void *);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
size_t align;
/* Flush pending memcpy */
- if(*len != 0) {
- if(buffer != NULL)
+ if (*len != 0) {
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, *from, *len);
}
*to += *len;
align = sizeof(char);
- if(*len == 0) {
+ if (*len == 0) {
*to += ltt_align(*to, align); /* align output */
} else {
*len += ltt_align(*to+*len, align); /* alignment, ok to do a memcpy of it */
/* Contains variable sized fields : must explode the structure */
size = strlen(obj) + 1; /* Include final NULL char. */
- if(buffer != NULL)
+ if (buffer != NULL)
memcpy(buffer+*to_base+*to, obj, size);
*to += size;
lttng_write_string_user_generic_thread_brand_name(buffer, to_base, to, from, len, lttng_param_name);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;
const char *real_from;
const char **from = &real_from;
uint64_t tsc;
- size_t before_hdr_pad, after_hdr_pad, header_size;
-
- if(!trace) {
+ if (!trace) {
ltt_thread_init();
trace = thread_trace_info;
}
ltt_buf = ltt_get_channel_from_index(trace, index);
slot_size = 0;
buffer = ltt_reserve_slot(trace, ltt_buf,
- reserve_size, &slot_size, &tsc,
- &before_hdr_pad, &after_hdr_pad, &header_size);
- if(!buffer) goto end; /* buffer full */
+ reserve_size, &slot_size, &tsc);
+ if (!buffer)
+ goto end; /* buffer full */
*to_base = *to = *len = 0;
- ltt_write_event_header(trace, ltt_buf, buffer,
+ buffer = ltt_write_event_header(trace, ltt_buf, buffer,
ltt_facility_user_generic_B1865E44, event_user_generic_thread_brand,
- reserve_size, before_hdr_pad, tsc);
- *to_base += before_hdr_pad + after_hdr_pad + header_size;
-
+ reserve_size, tsc);
*from = (const char*)lttng_param_name;
lttng_write_string_user_generic_thread_brand_name(buffer, to_base, to, from, len, lttng_param_name);
/* Flush pending memcpy */
- if(*len != 0) {
+ if (*len != 0) {
memcpy(buffer+*to_base+*to, *from, *len);
*to += *len;
*len = 0;