Skip to content

Commit

Permalink
Merge PR snabbco#42 (lib.pmu fixes for snabbco#40) into master
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Jun 27, 2018
2 parents 275d95b + 17fd901 commit c2dd7ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.vita
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ INCLUDE = *.* core arch jit syscall pf \
program/vita program/top program/trace program/ps program/pci_bind

INCLUDE_TEST = $(INCLUDE) \
lib/pmu.* apps/basic apps/test apps/packet_filter apps/ipv4 \
lib/pmu* apps/basic apps/test apps/packet_filter apps/ipv4 \
lib/pcap apps/pcap \
program/snsh program/snabbmark \
lib/virtio apps/vhost apps/ipsec apps/ipv6 \
Expand Down
2 changes: 1 addition & 1 deletion src/lib/pmu_x86.dasl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ if vendor == "GenuineIntel" then
-- All available counters are globally enabled
-- (IA32_PERF_GLOBAL_CTRL).
writemsr(cpu, 0x38f, bit.bor(bit.lshift(0x3ULL, 32),
bit.lshift(1ULL, pmu_x86.ngeneral) - 1))
bit.lshift(1ULL, ngeneral) - 1))
-- Enable all fixed-function counters (IA32_FIXED_CTR_CTRL)
writemsr(cpu, 0x38d, 0x333)
return {"instructions", "cycles", "ref_cycles"}, 0
Expand Down

0 comments on commit c2dd7ea

Please sign in to comment.