Diff of /pe_profiling/operf.cpp [44d156] .. [d840b9] Maximize Restore

  Switch to unified view

a/pe_profiling/operf.cpp b/pe_profiling/operf.cpp
...
...
106
string session_dir;
106
string session_dir;
107
string vmlinux;
107
string vmlinux;
108
bool separate_cpu;
108
bool separate_cpu;
109
bool separate_thread;
109
bool separate_thread;
110
bool post_conversion;
110
bool post_conversion;
111
vector<string> evts;
111
set<string> evts;
112
}
112
}
113
113
114
static const char * valid_verbose_vals[] = { "debug", "record", "convert", "misc", "sfile", "arcs", "all"};
114
static const char * valid_verbose_vals[] = { "debug", "record", "convert", "misc", "sfile", "arcs", "all"};
115
#define NUM_VERBOSE_OPTIONS (sizeof(valid_verbose_vals)/sizeof(char *))
115
#define NUM_VERBOSE_OPTIONS (sizeof(valid_verbose_vals)/sizeof(char *))
116
116
...
...
1185
                __print_usage_and_exit("operf: Invalid numeric value for --pid option.");
1185
                __print_usage_and_exit("operf: Invalid numeric value for --pid option.");
1186
            break;
1186
            break;
1187
        case 'e':
1187
        case 'e':
1188
            event = strtok(optarg, ",");
1188
            event = strtok(optarg, ",");
1189
            do {
1189
            do {
1190
                operf_options::evts.push_back(event);
1190
                operf_options::evts.insert(event);
1191
            } while ((event = strtok(NULL, ",")));
1191
            } while ((event = strtok(NULL, ",")));
1192
            break;
1192
            break;
1193
        case 'c':
1193
        case 'c':
1194
            operf_options::separate_cpu = true;
1194
            operf_options::separate_cpu = true;
1195
            break;
1195
            break;