Lines Matching defs:opt_mode
86 static int opt_mode = SAMPLE_MODE_INSTANTANEOUS;
648 nsample_total = sample_n_kern[opt_mode] + sample_n_user[opt_mode];
655 sample_n_per_event[opt_mode][i]);
664 sum += sample_n_per_event_cpu[opt_mode][nevent * n + i];
695 if (sample_n_per_event[opt_mode][i] >= nsample_total) {
697 sample_n_per_event[opt_mode][i] / nsample_total);
700 sample_n_per_event[opt_mode][i] / nsample_total);
703 sample_n_per_event[opt_mode][i]);
708 sample_n_per_event_cpu[opt_mode][nevent * n + i]);
743 if (opt_mode == SAMPLE_MODE_INSTANTANEOUS)
747 samples = &sample_list[opt_mode];
759 if (opt_mode == SAMPLE_MODE_ACCUMULATIVE)
817 nsample_total = sample_n_kern[opt_mode];
819 nsample_total += sample_n_user[opt_mode];
827 if (e->num[opt_mode] >= nsample_total) {
829 e->num[opt_mode] / nsample_total);
832 e->num[opt_mode] / nsample_total);
835 e->num[opt_mode], name);
838 if (SAMPLE_ELM_NUM_CPU(e, opt_mode)[n] == 0) {
843 SAMPLE_ELM_NUM_CPU(e, opt_mode)[n]);
874 sample_event_width, sample_n_kern[opt_mode], "in-kernel");
877 sample_n_kern_per_cpu[opt_mode][n]);
883 sample_event_width, sample_n_user[opt_mode], "userland");
886 sample_n_user_per_cpu[opt_mode][n]);
921 opt_mode = SAMPLE_MODE_ACCUMULATIVE;
1032 opt_mode = (opt_mode + 1) %