Diff of /libperf_events/operf_counter.cpp [3795ee] .. [ebde58]  Maximize  Restore

Switch to unified view

a/libperf_events/operf_counter.cpp b/libperf_events/operf_counter.cpp
...
...
29
#include "op_abi.h"
29
#include "op_abi.h"
30
#include "cverb.h"
30
#include "cverb.h"
31
#include "operf_process_info.h"
31
#include "operf_process_info.h"
32
#include "op_libiberty.h"
32
#include "op_libiberty.h"
33
#include "operf_stats.h"
33
#include "operf_stats.h"
34
#include "op_pe_utils.h"
34
35
35
36
36
using namespace std;
37
using namespace std;
37
using namespace OP_perf_utils;
38
using namespace OP_perf_utils;
38
39
...
...
643
        if (use_cpu_minus_one) {
644
        if (use_cpu_minus_one) {
644
            real_cpu = -1;
645
            real_cpu = -1;
645
        } else if (all_cpus_avail) {
646
        } else if (all_cpus_avail) {
646
            real_cpu = cpu;
647
            real_cpu = cpu;
647
        } else {
648
        } else {
648
            real_cpu = op_get_next_online_cpu(dir, entry);
649
            real_cpu = op_pe_utils::op_get_next_online_cpu(dir, entry);
649
            if (real_cpu < 0) {
650
            if (real_cpu < 0) {
650
                err_msg = "Internal Error: Number of online cpus cannot be determined.";
651
                err_msg = "Internal Error: Number of online cpus cannot be determined.";
651
                rc = -1;
652
                rc = -1;
652
                goto error;
653
                goto error;
653
            }
654
            }

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks