]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: common: cputrace global anchor IDs and unique per-thread assignment
authorJaya Prakash <jayaprakash@ibm.com>
Mon, 15 Sep 2025 12:41:01 +0000 (12:41 +0000)
committerJaya Prakash <jayaprakash@ibm.com>
Tue, 7 Oct 2025 14:13:48 +0000 (14:13 +0000)
commitd30b1e77836e8cceb152fd248e93626a33ca5ae6
tree9244dfa27b8d5a08027caf97a508b5e2d0696897
parent2491a6c607742e2b82c29bb6a3f0745b30eaae51
common: common: cputrace global anchor IDs and unique per-thread assignment

Updated `HWProfileFunctionF` macro to use a global anchor registry (`name_to_id` / `next_id`)
so IDs are unique across translation units. Replaced simple `thread_local` hashing with a
thread-safe per-thread ID assignment.

Signed-off-by: Jaya Prakash <jayaprakash@ibm.com>
src/common/cputrace.cc
src/common/cputrace.h