Diff of /libpe_utils/op_pe_utils.cpp [44d156] .. [d840b9]  Maximize  Restore

  Switch to unified view

a/libpe_utils/op_pe_utils.cpp b/libpe_utils/op_pe_utils.cpp
...
...
768
768
769
#endif // PPC64_ARCH
769
#endif // PPC64_ARCH
770
770
771
771
772
772
773
void op_pe_utils::op_process_events_list(vector<string> & passed_evts,
773
void op_pe_utils::op_process_events_list(set<string> & passed_evts,
774
                                         bool do_profiling, bool do_callgraph)
774
                                         bool do_profiling, bool do_callgraph)
775
{
775
{
776
    string cmd = OP_BINDIR;
776
    string cmd = OP_BINDIR;
777
777
778
    if (passed_evts.size() > OP_MAX_EVENTS) {
778
    if (passed_evts.size() > OP_MAX_EVENTS) {
...
...
781
        exit(EXIT_FAILURE);
781
        exit(EXIT_FAILURE);
782
    }
782
    }
783
    cmd += "/ophelp --check-events ";
783
    cmd += "/ophelp --check-events ";
784
    if (!do_profiling)
784
    if (!do_profiling)
785
        cmd += "--ignore-count ";
785
        cmd += "--ignore-count ";
786
  for (unsigned int i = 0; i <  passed_evts.size(); i++) {
786
  for (set<string>::iterator it = passed_evts.begin(); it != passed_evts.end(); it++) {
787
        FILE * fp;
787
        FILE * fp;
788
        string full_cmd = cmd;
788
        string full_cmd = cmd;
789
        string event_spec = passed_evts[i];
789
        string event_spec = *it;
790
790
791
#if PPC64_ARCH
791
#if PPC64_ARCH
792
        // Starting with CPU_PPC64_ARCH_V1, ppc64 events files are formatted like
792
        // Starting with CPU_PPC64_ARCH_V1, ppc64 events files are formatted like
793
        // other architectures, so no special handling is needed.
793
        // other architectures, so no special handling is needed.
794
        if (cpu_type < CPU_PPC64_ARCH_V1)
794
        if (cpu_type < CPU_PPC64_ARCH_V1)