summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorZide Chen <zide.chen@intel.com>2026-06-11 09:00:27 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-06-30 10:57:03 +0200
commit7d3a9ff98898b3521eb5d7a3daf703b383f7935a (patch)
treeac6b2889f32665ea32dbe3fb2bdf59dde9b19552 /tools/perf/scripts/python/bin
parent003267cb94e21d762eb72d6977d84f44f1705bb7 (diff)
perf/x86/intel/uncore: Fix refcnt and other cleanups
Fix typo UNCORE_BOX_FLAG_INITIATED to UNCORE_BOX_FLAG_INITIALIZED. Rename the 'id' parameter in uncore_box_{ref,unref}() to 'die' to reflect its actual meaning and be consistent with other functions. box->refcnt is incremented in the PCI PMU register path but has never been checked or decremented. Although for PCI PMUs box->refcnt effectively tracks only a single user, add atomic_dec_return() in the PCI PMU unregister path to make the reference counting complete and consistent. Signed-off-by: Zide Chen <zide.chen@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://patch.msgid.link/20260611160033.66760-3-zide.chen@intel.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions