if (to_json && to_ctf) {
pr_err("You cannot specify both --to-ctf and --to-json.\n"); return -1;
} #ifdef HAVE_LIBBABELTRACE_SUPPORT if (!to_json && !to_ctf) {
pr_err("You must specify one of --to-ctf or --to-json.\n"); return -1;
} #else if (!to_json) {
pr_err("You must specify --to-json.\n"); return -1;
} #endif
if (to_json) return bt_convert__perf2json(input_name, to_json, &opts);
if (to_ctf) { #ifdefined(HAVE_LIBBABELTRACE_SUPPORT) && defined(HAVE_LIBTRACEEVENT) return bt_convert__perf2ctf(input_name, to_ctf, &opts); #else
pr_err("The libbabeltrace support is not compiled in. perf should be " "compiled with environment variables LIBBABELTRACE=1 and " "LIBBABELTRACE_DIR=/path/to/libbabeltrace/.\n" "Check also if libbtraceevent devel files are available.\n"); return -1; #endif
}
return 0;
}
staticstruct data_cmd data_cmds[] = {
{ "convert", "converts data file between formats", cmd_data_convert },
{ .name = NULL, },
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.