itrace_synth_opts
struct itrace_synth_opts itrace_synth_opts = {
OPT_CALLBACK_OPTARG(0, "itrace", &itrace_synth_opts, NULL, "opts",
annotate.session->itrace_synth_opts = &itrace_synth_opts;
struct itrace_synth_opts itrace_synth_opts = {
session->itrace_synth_opts = &itrace_synth_opts;
struct itrace_synth_opts itrace_synth_opts;
inject->itrace_synth_opts.set = true;
inject->itrace_synth_opts.vm_time_correlation = true;
inject->itrace_synth_opts.vm_tm_corr_dry_run = true;
inject->itrace_synth_opts.vm_tm_corr_args = strdup(args);
return inject->itrace_synth_opts.vm_tm_corr_args ? 0 : -ENOMEM;
inject->itrace_synth_opts.set) {
} else if (inject->itrace_synth_opts.vm_time_correlation) {
session->itrace_synth_opts = &inject->itrace_synth_opts;
} else if (inject->itrace_synth_opts.set) {
session->itrace_synth_opts = &inject->itrace_synth_opts;
inject->itrace_synth_opts.inject = true;
if (!inject->itrace_synth_opts.set)
inject->have_auxtrace && !inject->itrace_synth_opts.set)
if (inject->itrace_synth_opts.set) {
if (inject->itrace_synth_opts.last_branch ||
inject->itrace_synth_opts.add_last_branch)
OPT_CALLBACK_OPTARG(0, "itrace", &inject.itrace_synth_opts,
if (!inject.itrace_synth_opts.set) {
if (inject.strip && !inject.itrace_synth_opts.set) {
free(inject.itrace_synth_opts.vm_tm_corr_args);
if (inject->itrace_synth_opts.set && sample->aux_sample.size) {
struct itrace_synth_opts itrace_synth_opts = {
session->itrace_synth_opts = &itrace_synth_opts;
session->itrace_synth_opts->cpu_bitmap = rep->cpu_bitmap;
struct itrace_synth_opts itrace_synth_opts = { .set = 0, };
OPT_CALLBACK_OPTARG(0, "itrace", &itrace_synth_opts, NULL, "opts",
if ((itrace_synth_opts.callchain || itrace_synth_opts.add_callchain) &&
(int)itrace_synth_opts.callchain_sz > report.max_stack)
report.max_stack = itrace_synth_opts.callchain_sz;
session->itrace_synth_opts = &itrace_synth_opts;
if (itrace_synth_opts.last_branch || itrace_synth_opts.add_last_branch)
itrace_synth_opts__set_time_range(&itrace_synth_opts,
itrace_synth_opts__clear_time_range(&itrace_synth_opts);
if (session->itrace_synth_opts->callchain ||
session->itrace_synth_opts->add_callchain ||
!session->itrace_synth_opts->set))
if (session->itrace_synth_opts->last_branch ||
session->itrace_synth_opts->add_last_branch)
struct itrace_synth_opts itrace_synth_opts = {
OPT_CALLBACK_OPTARG(0, "insn-trace", &itrace_synth_opts, NULL, "raw|disasm",
OPT_CALLBACK_OPTARG(0, "call-trace", &itrace_synth_opts, NULL, NULL,
OPT_CALLBACK_OPTARG(0, "call-ret-trace", &itrace_synth_opts, NULL, NULL,
OPT_CALLBACK_OPTARG(0, "itrace", &itrace_synth_opts, NULL, "opts",
if ((itrace_synth_opts.callchain || itrace_synth_opts.add_callchain) &&
itrace_synth_opts.callchain_sz > scripting_max_stack)
scripting_max_stack = itrace_synth_opts.callchain_sz;
itrace_synth_opts.thread_stack = true;
session->itrace_synth_opts = &itrace_synth_opts;
itrace_synth_opts.cpu_bitmap = cpu_bitmap;
itrace_synth_opts__set_time_range(&itrace_synth_opts,
itrace_synth_opts__clear_time_range(&itrace_synth_opts);
if (!c->session || !c->session->itrace_synth_opts)
if (c->session->itrace_synth_opts->set) {
retval = itrace_do_parse_synth_opts(c->session->itrace_synth_opts, itrace_options, 0);
if (session->itrace_synth_opts && session->itrace_synth_opts->set) {
spe->synth_opts = *session->itrace_synth_opts;
struct itrace_synth_opts synth_opts;
return !session->itrace_synth_opts ||
session->itrace_synth_opts->dont_decode;
void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts,
int itrace_do_parse_synth_opts(struct itrace_synth_opts *synth_opts,
unsigned long *cpu_bitmap = session->itrace_synth_opts->cpu_bitmap;
int itrace_do_parse_synth_opts(struct itrace_synth_opts *synth_opts,
void itrace_synth_opts__set_default(struct itrace_synth_opts *synth_opts,
void itrace_synth_opts__set_time_range(struct itrace_synth_opts *opts,
void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts)
if (session->itrace_synth_opts->set) {
etm->synth_opts = *session->itrace_synth_opts;
session->itrace_synth_opts->default_no_sample);
struct itrace_synth_opts synth_opts;
struct itrace_synth_opts synth_opts;
if (session->itrace_synth_opts->set) {
bts->synth_opts = *session->itrace_synth_opts;
session->itrace_synth_opts->default_no_sample);
session->itrace_synth_opts->thread_stack;
struct itrace_synth_opts *opts)
if (session->itrace_synth_opts->set) {
pt->synth_opts = *session->itrace_synth_opts;
struct itrace_synth_opts *opts = session->itrace_synth_opts;
if (session->itrace_synth_opts->ptime_range) {
err = intel_pt_setup_time_ranges(pt, session->itrace_synth_opts);
struct itrace_synth_opts synth_opts;
static bool check_auxtrace_itrace(struct itrace_synth_opts *itops)
if (!check_auxtrace_itrace(session->itrace_synth_opts)) {
sf->use_logfile = session->itrace_synth_opts->log;
struct itrace_synth_opts;
struct itrace_synth_opts *itrace_synth_opts;