summaryrefslogtreecommitdiff
path: root/linux/perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/perf.c')
-rw-r--r--linux/perf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/perf.c b/linux/perf.c
index f3b805d7..46103430 100644
--- a/linux/perf.c
+++ b/linux/perf.c
@@ -199,7 +199,6 @@ static bool arch_perfCreate(run_t* run, pid_t pid, dynFileMethod_t method, int*
NULL, pem->aux_size, PROT_READ, MAP_SHARED, *perfFd, pem->aux_offset)) == MAP_FAILED) {
munmap(run->linux.perfMmapBuf, _HF_PERF_MAP_SZ + getpagesize());
run->linux.perfMmapBuf = NULL;
- run->linux.perfMmapAux = NULL;
PLOG_W(
"mmap(mmapAuxBuf) failed, try increasing the kernel.perf_event_mlock_kb sysctl (up to "
"even 300000000)");
@@ -252,7 +251,7 @@ out:
close(run->linux.cpuBranchFd);
run->linux.cpuBranchFd = -1;
close(run->linux.cpuIptBtsFd);
- run->linux.cpuIptBtsFd = -1;
+ run->linux.cpuIptBtsFd = 1;
return false;
}