If intel_pt_validate_hw_cap is not fast enough, it should be optimized. Something like this: If I understand correctly, you mean we don't need to cache the existence with two variable, right?
If intel_pt_validate_hw_cap is not fast enough, it should be optimized. Something like this: