This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PDefs.Program ::= [Def] ; | |
DefImport. Def ::= "import" [PackageName] ";" ; | |
DefPackage. Def ::= "package" [PackageName] ";" ; | |
DefModule. Def ::= "module" Id "{" [ModDef] "}" ; | |
terminator Def "" ; | |
DefStorage. ModDef ::= Type Id ";" ; | |
DefInput. ModDef ::= "input" Type Id ";" ; | |
DefOutput. ModDef ::= "output" Type Id ";" ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Kernel module to initialize counters | |
*/ | |
#include <linux/module.h> /* Needed by all modules */ | |
#include <linux/kernel.h> /* Needed for KERN_ERR */ | |
#include <asm/io.h> | |
#include <linux/fs.h> | |
#include <linux/slab.h> | |
#include <asm/uaccess.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# depmod -a; modprobe pmu_sync_sample ; sleep 0; modprobe -r pmu_sync_sample | |
dmesg output | |
[91376.479217] Found 6 counters | |
[91376.479339] Hello, ARM from core 0 | |
[91376.479492] PMNC registers dump: | |
[91376.479583] PMNC =0x41093001 | |
[91376.479736] CNTENS=0x8000003f | |
[91376.479827] INTENS=0x00000000 | |
[91376.479919] FLAGS =0x00000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
============================================================================ | |
Name : branch_mispred.c | |
Author : John Demme | |
Version : Mar 21, 2011 | |
Description : A template for perf_event. Requires Linux 2.6.32 or higher | |
============================================================================ | |
*/ | |
#define _GNU_SOURCE |