On Wed, Aug 31, 2022, Like Xu wrote: > + hw_idx = pmc->perf_event->hw.idx; > + /* make it a little less dependent on perf's exact behavior */ Reworded this to explain how a negative value can be encountered. > + if (hw_idx != pmc->idx && hw_idx > -1) > + pmu->host_cross_mapped_mask |= BIT_ULL(hw_idx); > } > }