diff options
author | rrs <rrs@FreeBSD.org> | 2015-01-14 12:46:58 +0000 |
---|---|---|
committer | rrs <rrs@FreeBSD.org> | 2015-01-14 12:46:58 +0000 |
commit | 8bf38c19340378b27480564610633c22767a038c (patch) | |
tree | 85da5545f7332c0a712cff50104bf9fb991e94b5 /sys/dev/hwpmc/hwpmc_mod.c | |
parent | 0af471d1f4ce104a73bb238f6fcce8d3251b7ccc (diff) | |
download | FreeBSD-src-8bf38c19340378b27480564610633c22767a038c.zip FreeBSD-src-8bf38c19340378b27480564610633c22767a038c.tar.gz |
Update the hwpmc driver to have the new type HASWELL_XEON. Also
go back through HASWELL, IVY_BRIDGE, IVY_BRIDGE_XEON and SANDY_BRIDGE
to straighten out all the missing PMCs. We also add a new pmc tool
pmcstudy, this allows one to run the various formulas from
the documents "Using Intel Vtune Amplifier XE on XXX Generation platforms" for
IB/SB and Haswell. The tool also allows one to postulate your own
formulas with any of the various PMC's. At some point I will enahance
this to work with Brendan Gregg's flame-graphs so we can flamegraph
various PMC interactions. Note the manual page also needs some
work (lots of work) but gnn has committed to help me with that ;-)
Reviewed by: gnn
MFC after:1 month
Sponsored by: Netflix Inc.
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_mod.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_mod.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index f1506d6..cb8ed37 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -320,8 +320,12 @@ static struct syscall_module_data pmc_syscall_mod = { NULL, &pmc_syscall_num, &pmc_sysent, +#if (__FreeBSD_version >= 1100000) { 0, NULL }, SY_THR_STATIC_KLD, +#else + { 0, NULL } +#endif }; static moduledata_t pmc_mod = { |