+always_inline uword
+perfmon_cpu_supported_bundle_type (perfmon_bundle_t *b)
+{
+ perfmon_cpu_supports_t *supports = b->cpu_supports;
+ uword type = 0;
+
+ /* if nothing specific for this bundle, go with the default */
+ if (!supports)
+ return b->type;
+
+ /* the last specified type, will always win */
+ for (int i = 0; i < b->n_cpu_supports; ++i)
+ if (supports[i].cpu_supports ())
+ type = supports[i].bundle_type;
+
+ return type;
+}
+