]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
log: thread name save/fetch infra
authorMilind Changire <mchangir@redhat.com>
Fri, 27 Sep 2024 10:40:22 +0000 (16:10 +0530)
committerMilind Changire <mchangir@redhat.com>
Tue, 15 Oct 2024 11:33:52 +0000 (17:03 +0530)
commit0be8d01c9ddde0d7d24edd34dc75f6cfc861b5ba
tree8cbb0e414f63a0a126b9acdc8132bc8e63f61230
parent7fb28191d2ed22acb791f70a1bfc4239618e3c39
log: thread name save/fetch infra

* pthread name is saved in a thread_local storage
* the thread_local name is copied into Entry object's ctor
* Log::dump_recent() reads the thread name from the Entry
  object's data member when dumping logs

Fixes: https://tracker.ceph.com/issues/50743
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/common/Thread.cc
src/common/Thread.h
src/log/Entry.h
src/log/Log.cc