]> git.apps.os.sepia.ceph.com Git - ceph.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>
Thu, 14 Nov 2024 01:58:32 +0000 (07:28 +0530)
commit1f5a55e58ab860e7286a0ad8f56f8268d2aef70c
treefa077899f9393629025824090ae653d94f586877
parent321d9d66bffd685c9c73c617f19a5da68c874dc2
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