Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo-gimenez committed Apr 19, 2017
2 parents e19622c + 085512a commit 0c6e7ea
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/services/perf_event/PerfEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,8 @@ namespace
//tsmp.proc_parent->handler_fn_args,
tsmp.containers[i].mmap_buf,
tsmp.pgmsk);
if(tsmp.pes.ip != 0)
num_good_samples++;
else
num_bad_samples++;
if(tsmp.pes.ip == 0)
std::cerr << "OUCH" << std::endl;
}
}

Expand Down Expand Up @@ -344,9 +342,6 @@ namespace
}

void finish_cb(Caliper* c) {
Log(1).stream() << "perf_event: processed " << num_good_samples << " samples ("
<< num_good_samples + num_bad_samples << " total, "
<< num_bad_samples << " dropped)." << endl;
}

// Initialization handler
Expand Down

0 comments on commit 0c6e7ea

Please sign in to comment.