]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
log: thread name save/fetch infra 60279/head
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:58:33 +0000 (17:28 +0530)
commit151cce14f5c45fc2511b76799e5b07851a1cdc07
tree748cfde7ec2f2d5f05f1304e50ac43cb9f6428fa
parent50bd64ba601258cbaca1dc0574acc6c8b2e1b1c5
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>
(cherry picked from commit 0be8d01c9ddde0d7d24edd34dc75f6cfc861b5ba)
src/common/Thread.cc
src/common/Thread.h
src/log/Entry.h
src/log/Log.cc