#include <babeltrace/context.h>
#include <babeltrace/ctf/types.h>
#include <babeltrace/ctf/events.h>
#include <babeltrace/context.h>
#include <babeltrace/ctf/types.h>
#include <babeltrace/ctf/events.h>
* bt_context_add_traces_recursive: Open a trace recursively
*
* Find each trace present in the subdirectory starting from the given
* bt_context_add_traces_recursive: Open a trace recursively
*
* Find each trace present in the subdirectory starting from the given
*
* Return: 0 on success, nonzero on failure.
* Unable to open toplevel: failure.
* Unable to open some subdirectory or file: warn and continue;
*/
int bt_context_add_traces_recursive(struct bt_context *ctx, const char *path,
*
* Return: 0 on success, nonzero on failure.
* Unable to open toplevel: failure.
* Unable to open some subdirectory or file: warn and continue;
*/
int bt_context_add_traces_recursive(struct bt_context *ctx, const char *path,
- const char *format_str)
+ const char *format_str,
+ void (*packet_seek)(struct stream_pos *pos,
+ size_t offset, int whence))
- node->fts_accpath, format_str);
+ node->fts_accpath, format_str,
+ packet_seek, NULL, NULL);
}
g_array_append_val(trace_ids, trace_id);
}
}
g_array_free(trace_ids, TRUE);
}
g_array_append_val(trace_ids, trace_id);
}
}
g_array_free(trace_ids, TRUE);
struct ctf_text_stream_pos *sout;
struct bt_iter_pos begin_pos;
struct bt_ctf_event *ctf_event;
struct ctf_text_stream_pos *sout;
struct bt_iter_pos begin_pos;
struct bt_ctf_event *ctf_event;
- while ((ctf_event = bt_iter_read_ctf_event(iter))) {
- ret = sout->parent.event_cb(&sout->parent, ctf_event->stream);
+ while ((ctf_event = bt_ctf_iter_read_event(iter))) {
+ ret = sout->parent.event_cb(&sout->parent, ctf_event->parent->stream);
ctx = bt_context_create();
ret = bt_context_add_traces_recursive(ctx, opt_input_path,
ctx = bt_context_create();
ret = bt_context_add_traces_recursive(ctx, opt_input_path,