|
#define | pr_N(n, fmt, ...) eprintf(n, debug_data_convert, fmt, ##__VA_ARGS__) |
|
#define | pr(fmt, ...) pr_N(1, pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr2(fmt, ...) pr_N(2, pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_time2(t, fmt, ...) pr_time_N(2, debug_data_convert, t, pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | MAX_CPUS 4096 |
|
#define | __FUNC_VALUE_SET(_name, _val_type) |
|
#define | FUNC_VALUE_SET(_name) __FUNC_VALUE_SET(_name, _name) |
|
#define | STREAM_FLUSH_COUNT 100000 |
|
#define | __NON_SAMPLE_SET_FIELD(_name, _type, _field) |
|
#define | __FUNC_PROCESS_NON_SAMPLE(_name, body) |
|
#define | ADD_FIELD(cl, t, n) |
|
#define | __NON_SAMPLE_ADD_FIELD(t, n) |
|
#define | __FUNC_ADD_NON_SAMPLE_EVENT_CLASS(_name, body) |
|
#define | ADD(__n, __v) |
|
#define | SET(__n, __v) |
|
#define | CREATE_INT_TYPE(type, size, sign, hex) |
|
|
static int | value_set (struct bt_ctf_field_type *type, struct bt_ctf_event *event, const char *name, u64 val) |
|
static int | string_set_value (struct bt_ctf_field *field, const char *string) |
|
static __maybe_unused int | value_set_string (struct ctf_writer *cw, struct bt_ctf_event *event, const char *name, const char *string) |
|
static struct bt_ctf_field_type * | get_tracepoint_field_type (struct ctf_writer *cw, struct format_field *field) |
|
static unsigned long long | adjust_signedness (unsigned long long value_int, int size) |
|
static int | add_tracepoint_field_value (struct ctf_writer *cw, struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct perf_sample *sample, struct format_field *fmtf) |
|
static int | add_tracepoint_fields_values (struct ctf_writer *cw, struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct format_field *fields, struct perf_sample *sample) |
|
static int | add_tracepoint_values (struct ctf_writer *cw, struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct perf_evsel *evsel, struct perf_sample *sample) |
|
static int | add_bpf_output_values (struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct perf_sample *sample) |
|
static int | add_callchain_output_values (struct bt_ctf_event_class *event_class, struct bt_ctf_event *event, struct ip_callchain *callchain) |
|
static int | add_generic_values (struct ctf_writer *cw, struct bt_ctf_event *event, struct perf_evsel *evsel, struct perf_sample *sample) |
|
static int | ctf_stream__flush (struct ctf_stream *cs) |
|
static struct ctf_stream * | ctf_stream__create (struct ctf_writer *cw, int cpu) |
|
static void | ctf_stream__delete (struct ctf_stream *cs) |
|
static struct ctf_stream * | ctf_stream (struct ctf_writer *cw, int cpu) |
|
static int | get_sample_cpu (struct ctf_writer *cw, struct perf_sample *sample, struct perf_evsel *evsel) |
|
static bool | is_flush_needed (struct ctf_stream *cs) |
|
static int | process_sample_event (struct perf_tool *tool, union perf_event *_event, struct perf_sample *sample, struct perf_evsel *evsel, struct machine *machine __maybe_unused) |
|
| __FUNC_PROCESS_NON_SAMPLE (comm, __NON_SAMPLE_SET_FIELD(comm, u32, pid);__NON_SAMPLE_SET_FIELD(comm, u32, tid);__NON_SAMPLE_SET_FIELD(comm, string, comm);) |
|
static int | event_class_add_field (struct bt_ctf_event_class *event_class, struct bt_ctf_field_type *type, struct format_field *field) |
|
static int | add_tracepoint_fields_types (struct ctf_writer *cw, struct format_field *fields, struct bt_ctf_event_class *event_class) |
|
static int | add_tracepoint_types (struct ctf_writer *cw, struct perf_evsel *evsel, struct bt_ctf_event_class *class) |
|
static int | add_bpf_output_types (struct ctf_writer *cw, struct bt_ctf_event_class *class) |
|
static int | add_generic_types (struct ctf_writer *cw, struct perf_evsel *evsel, struct bt_ctf_event_class *event_class) |
|
static int | add_event (struct ctf_writer *cw, struct perf_evsel *evsel) |
|
static int | setup_events (struct ctf_writer *cw, struct perf_session *session) |
|
| __FUNC_ADD_NON_SAMPLE_EVENT_CLASS (comm, __NON_SAMPLE_ADD_FIELD(u32, pid);__NON_SAMPLE_ADD_FIELD(u32, tid);__NON_SAMPLE_ADD_FIELD(string, comm);) |
|
static void | cleanup_events (struct perf_session *session) |
|
static int | setup_streams (struct ctf_writer *cw, struct perf_session *session) |
|
static void | free_streams (struct ctf_writer *cw) |
|
static int | ctf_writer__setup_env (struct ctf_writer *cw, struct perf_session *session) |
|
static int | ctf_writer__setup_clock (struct ctf_writer *cw) |
|
static struct bt_ctf_field_type * | create_int_type (int size, bool sign, bool hex) |
|
static void | ctf_writer__cleanup_data (struct ctf_writer *cw) |
|
static int | ctf_writer__init_data (struct ctf_writer *cw) |
|
static void | ctf_writer__cleanup (struct ctf_writer *cw) |
|
static int | ctf_writer__init (struct ctf_writer *cw, const char *path) |
|
static int | ctf_writer__flush_streams (struct ctf_writer *cw) |
|
static int | convert__config (const char *var, const char *value, void *cb) |
|
int | bt_convert__perf2ctf (const char *input, const char *path, struct perf_data_convert_opts *opts) |
|