Skip to content

Commit a4491e6

Browse files
committed
linux/pt: include missing linux/perf.h - closes #534
1 parent f031488 commit a4491e6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

linux/bfd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,9 +834,9 @@ void arch_elfCollectRoValues(honggfuzz_t* hfuzz) {
834834
}
835835

836836
uint8_t* buf = util_Malloc(sz);
837-
defer {
838-
free(buf);
839-
};
837+
defer {
838+
free(buf);
839+
};
840840
if (!bfd_get_section_contents(bfdh, sec, buf, 0, sz)) {
841841
LOG_W("bfd_get_section_contents('%s') failed", name);
842842
continue;

linux/pt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "libhfcommon/common.h"
3131
#include "libhfcommon/log.h"
3232
#include "libhfcommon/util.h"
33+
#include "linux/perf.h"
3334

3435
#ifdef _HF_LINUX_INTEL_PT_LIB
3536

0 commit comments

Comments
 (0)