diff options
author | Tom Seidenberg <tseidenb@cisco.com> | 2020-07-10 15:49:03 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-07-16 21:44:42 +0000 |
commit | 6c81f5a2493ff65b4dacfef45db8a1ee459a738f (patch) | |
tree | 24343a92e18599be4e4b4aa360ab7b2c13cdb878 /src/plugins/perfmon/perfmon_intel.h | |
parent | bab02f0b184b63c4159ded030cf34044be10da40 (diff) |
misc: add callback hooks and refactor pmc
Callbacks for monitoring and performance measurement:
- Add new callback list type, with context
- Add callbacks for API, CLI, and barrier sync
- Modify node dispatch callback to pass plugin-specific context
- Modify perfmon plugin to keep PMC samples local to the plugin
- Include process nodes in dispatch callback
- Pass dispatch function return value to callback
Type: refactor
Signed-off-by: Tom Seidenberg <tseidenb@cisco.com>
Change-Id: I28b06c58490611e08d76ff5b01b2347ba2109b22
Diffstat (limited to 'src/plugins/perfmon/perfmon_intel.h')
-rw-r--r-- | src/plugins/perfmon/perfmon_intel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/perfmon/perfmon_intel.h b/src/plugins/perfmon/perfmon_intel.h index 6bb849244d5..475309124ea 100644 --- a/src/plugins/perfmon/perfmon_intel.h +++ b/src/plugins/perfmon/perfmon_intel.h @@ -25,6 +25,10 @@ typedef struct { u8 event_code[2]; u8 umask; + u8 cmask; + u8 inv; + u8 anyt; + u8 edge; char *event_name; } perfmon_intel_pmc_event_t; |