Skip to content

Commit

Permalink
Use git submodule for libpfm.
Browse files Browse the repository at this point in the history
  • Loading branch information
nemequ committed Mar 11, 2018
1 parent 9708c97 commit 5b6777a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "backward-cpp"]
path = backward-cpp
url = https://github.com/bombela/backward-cpp.git
[submodule "libpfm4"]
path = libpfm4
url = https://git.code.sf.net/p/perfmon2/libpfm4
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ CC ?= gcc
ASM ?= nasm
ASM_FLAGS ?= -DNASM_ENABLE_DEBUG=$(NASM_DEBUG) -w+all -l x86_methods.list

PFM_VER ?= 4.8.0
PFM_DIR ?= libpfm-$(PFM_VER)
PFM_DIR ?= libpfm4
PFM_LIBDIR ?= $(PFM_DIR)/lib

GIT_VERSION := $(shell git describe --dirty --always)
Expand Down Expand Up @@ -95,11 +94,11 @@ insmod: libpfc
sudo insmod libpfc/pfc.ko

$(PFM_LIBDIR)/libpfm.so:
tar xzf libpfm-4.8.0.tar.gz
$(MAKE) -C $(PFM_DIR) lib

libpfm4-clean:
rm -rf $(PFM_DIR)
$(MAKE) -C $(PFM_DIR) clean



LOCAL_MK = $(wildcard local.mk)
Expand Down
Binary file removed libpfm-4.8.0.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion libpfm4-support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <cstring>
#include <vector>

#include "libpfm-4.8.0/include/perfmon/pfmlib.h"
#include "libpfm4/include/perfmon/pfmlib.h"

#include "libpfm4-support.hpp"
#include "context.hpp"
Expand Down

0 comments on commit 5b6777a

Please sign in to comment.