thr_self
(void) fprintf(stderr, "%s:[%u] ", cmdname, thr_self());
return (thr_self());
(void) sprintf(buf, "t%u\t%s", thr_self(), fmt);
thread_t this_tid = thr_self();
(void) thr_setname(thr_self(), "revalidate");
(void) thr_setname(thr_self(), "do_update");
(void) thr_setname(thr_self(), me);
(void) thr_setname(thr_self(), me);
(void) thr_setname(thr_self(), "server_tsd_bind");
ctx->in_use, ctx->thr_id, thr_self());
if (in_use == 1 && ctx->thr_id == thr_self())
c->thr_id = thr_self();
(void) thr_setname(thr_self(), me);
(void) sprintf(tid_buf, "--%d", thr_self());
thread_t tid = thr_self();
thread_t tid = thr_self();
(void) thr_setname(thr_self(), me);
(void) thr_setname(thr_self(), me);
(void) thr_setname(thr_self(), "set_smf_state");
if (polllist.poll_tid == thr_self()) {
thr_self());
lwpid_t my_id = thr_self();
lwpid_t my_id = thr_self();
D1(stderr, "t@%d genaltbrk fd=%d sockfd %d\n", thr_self(),
D3(stderr, "t@%d process_daemon_cmd %d %d \n", thr_self(),
D3(stderr, "t@%d vntsd_ctrl_cmd%d %d\n", thr_self(),
D3(stderr, "t@%d client restart\n", thr_self());
D3(stderr, "t@%d client suspend\n", thr_self());
D1(stderr, "t@%d genbrk fd=%d sockfd %d\n", thr_self(),
D1(stderr, "t@%d open_vcc@%s exit\n", thr_self(), dev_name);
tmo.tid = thr_self();
thr_self(), msg);
DERR(stderr, "%s: thread[%d] %s\n", status_msg, thr_self(), msg);
syslog(LOG_ERR, "%s: thread[%d] %s\n", status_msg, thr_self(), msg);
thr_self(), consp->cons_no);
thr_self(), status, clientp->status, groupp->num_cons);
D1(stderr, "t@%d get_client_sel@%lld:client@%d\n", thr_self(),
D1(stderr, "t@%d console_thread()@%lld:client@%d\n", thr_self(),
thr_self(), rv);
D1(stderr, "t@%d open_socket() sockfd=%d\n", thr_self(), *sockfd);
D1(stderr, "t@%d create_console_thread@%lld:client@%d\n", thr_self(),
D1(stderr, "t@%d listen@%lld\n", thr_self(), groupp->tcp_port);
thr_self(), newsockfd);
"authorization failure\n", thr_self(),
"tcp=%lld group status = %x\n", thr_self(), status,
thr_self());
D3(stderr, "t@%d vntsd_read@%d\n", thr_self(), clientp->sockfd);
D1(stderr, "t@%d:acuire_writer :client@%d\n", thr_self(),
D1(stderr, "t@%d alarm signal %d\n", thr_self(), sig);
thr_self(), sig);
main_thread = thr_self();
} else if (main_thread != thr_self()) {
D1(stderr, "t@%d vntsd_exit\n", thr_self());
vntsdp->tid = thr_self();
D1(stderr, "t@%d driver event %x\n", thr_self(),
D1(stderr, "t@%d vcc_ioctl@%d code=%x\n", thr_self(), portno,
D1(stderr, "t@%d exit_sig_handler%d \n", thr_self(), sig);
if (thr_self() != vntsdp->tid) {
D1(stderr, "t@%d clean_group() group=%s tcp=%lld\n", thr_self(),
D1(stderr, "t@%d alloc_cons@%d %s %s\n", thr_self(),
D1(stderr, "t@%d alloc_group@%lld:%s\n", thr_self(), groupp->tcp_port,
D1(stderr, "t@%d create_listen:%lld\n", thr_self(), groupp->tcp_port);
D1(stderr, "t@%d vntsd_daemon_wakup:msg %d port %x\n", thr_self(),
thr_self(), inq_data.reason);
D1(stderr, "t@%d vntsd_disconn_clients@%d\n", thr_self(),
D1(stderr, "t@%d vntsd_write@%d\n", thr_self(), consp->vcc_fd);
g_main = thr_self();
extern thread_t thr_self(void);
extern thread_t thr_self(void);
if (lck_tid == thr_self() && fildes >= 0) {
lck_tid = thr_self();
if ((error = thr_kill(thr_self(), sig)) != 0) {
set->cs_thr = thr_self();
set->cs_thr = thr_self();
tid = thr_self();
prev = atomic_swap_uint(&reap_tid, thr_self());
return ((unsigned long)thr_self());
return ((void *)thr_self());
(void) thr_getprio(thr_self(), &priority);
(void) thr_setprio(thr_self(), priority);
new_curcpu = (curcpu_func)thr_self;
fprintf(rsmlog_fd, "Thread %d ", thr_self());
"cache %d\n", thr_self(), id);
thr_self(), cID, flag);
if (!cp || (!fini && (!cp->usedBit || cp->threadID != thr_self()))) {
thr_self());
thr_self());
thr_self());
thr_self());
thread_t t = thr_self();
thread_t t = thr_self();
t = thr_self();
cp->threadID = thr_self();
"cache %d\n", thr_self(), id);
con->threadID = thr_self();
cmg->procchg_tid = thr_self();
return ((void *)(uintptr_t)thr_self());
thread_t t = thr_self();
if (cmg->procchg_tid != thr_self()) {
cu->tid = thr_self();
cm->tid = thr_self();
if (thr_self() == hp->consumer_tid || hp->close_on_end) {
hp->consumer_tid = thr_self();
hp->consumer_tid = thr_self();
sub_info->sp_handler_tid = thr_self();
ASSERT(umem_update_thr != thr_self() &&
umem_st_update_thr != thr_self());
if (umem_nofail_exit_thr == thr_self())
umem_nofail_exit_thr = thr_self();
_bcp->bc_thread = thr_self(); \
umem_st_update_thr = thr_self();
if (umem_init_thr == thr_self())
if (thr_self() != umem_init_thr) {
umem_init_thr = thr_self();
#define CPUHINT() (thr_self())
#define IN_UPDATE() (thr_self() == umem_update_thr || \
thr_self() == umem_st_update_thr)
if (umem_update_thr != thr_self()) {
if (umem_st_update_thr != thr_self()) {
if (umem_ready == UMEM_READY_INITING && umem_init_thr != thr_self()) {
ASSERT(umem_update_thr == thr_self());
#define IN_POPULATE() (vmem_nosleep_lock.vmpl_thr == thr_self())
vsp->vs_thread = thr_self();
if (vmem_nosleep_lock.vmpl_thr == thr_self()) {
lp->vmpl_thr = thr_self();
if (umem_ready != UMEM_READY && umem_init_thr != thr_self() &&
(void) printf("%u ", thr_self());
#define CPU_SEQID (thr_self() & (max_ncpus - 1))
lck_tid = thr_self();
if (lck_tid == thr_self() && fildes >= 0) {
varpd_panic_thread = thr_self();
rc = thr_setname(thr_self(), "main");
rc = thr_getname(thr_self(), name, sizeof (name));
rc = thr_setname(thr_self(), "\033]0;messeduptitle\a");
rc = thr_setname(thr_self(), "ab\177\177\n");
"cannot continue", thr_self(), targ, level);
lock_results[lock_nextres].loi_thread = thr_self();
VERIFY3U(thr_self(), ==, lock_sig_thrid);
lock_sig_thrid = thr_self();
thr_self() == 1 ? "" : " (in thread)");
if (proc_get_lwpsinfo(getpid(), thr_self(), &lwpsinfo) != 0) {
warn("failed to get lwpsinfo for thread %u", thr_self());
thread_t self = thr_self();