aboutsummaryrefslogtreecommitdiff
path: root/gprofng/common/hwcentry.h
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2024-07-07 19:44:46 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2024-07-09 10:50:05 -0700
commit971ae1844e7c105cff3699ad69dfed31810ef8e4 (patch)
treea6c2e77232876ba0d7dc1f5b5b5bafadbc1eb87c /gprofng/common/hwcentry.h
parent604b972e61452801757f5c824e58a6c6c3a537d1 (diff)
downloadbinutils-971ae1844e7c105cff3699ad69dfed31810ef8e4.zip
binutils-971ae1844e7c105cff3699ad69dfed31810ef8e4.tar.gz
binutils-971ae1844e7c105cff3699ad69dfed31810ef8e4.tar.bz2
gprofng: add hardware counters for Intel Ice Lake processor
gprofng/ChangeLog 2024-07-07 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>. * common/hwc_cpus.h: New constant for Intel Ice Lake processor. * common/hwcdrv.c: Add a new argument to hwcfuncs_get_x86_eventsel. Set config1 in perf_event_attr. Remove the use of memset. * common/core_pcbe.c (core_pcbe_get_eventnum): Return 0. * common/hwcentry.h: Add config1. * src/collctrl.cc (Coll_Ctrl::build_data_desc):Set config1. * common/hwcfuncs.c (process_data_descriptor): Set config1. * common/hwctable.c: Add the hwc table for Intel Ice Lake processor. * src/hwc_intel_icelake.h: New file.
Diffstat (limited to 'gprofng/common/hwcentry.h')
-rw-r--r--gprofng/common/hwcentry.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gprofng/common/hwcentry.h b/gprofng/common/hwcentry.h
index 946356e..b2ab8b9 100644
--- a/gprofng/common/hwcentry.h
+++ b/gprofng/common/hwcentry.h
@@ -118,6 +118,7 @@ extern "C"
unsigned int use_perf_event_type : 16; /* Set 1 to use two fields below */
unsigned int type : 16; /* Type of perf_event_attr */
long long config; /* perf_event_type -specific configuration */
+ long long config1; /* perf_event_type -specific configuration */
int sort_order; /* "tag" to associate experiment record with HWC def */
hrtime_t min_time; /* target minimum time between overflow events. 0 is off. See HWCTIME_* macros */
hrtime_t min_time_default; /* if min_time==HWCTIME_AUTO, use this value instead. 0 is off. */