Home
last modified time | relevance | path

Searched refs:wcb (Results 1 – 25 of 26) sorted by relevance

12

/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_wcb.c54 mdb_wcb_t *wcb = (mdb_wcb_t *)wsp; in mdb_wcb_from_state() local
56 if (wcb->w_buftag != WCB_TAG_ACTIVE && wcb->w_buftag != WCB_TAG_INITIAL) in mdb_wcb_from_state()
57 fail("walk state %p is corrupt or not active\n", (void *)wcb); in mdb_wcb_from_state()
59 return (wcb); in mdb_wcb_from_state()
65 mdb_wcb_t *wcb = mdb_zalloc(sizeof (mdb_wcb_t), UM_SLEEP); in mdb_wcb_create() local
67 wcb->w_buftag = WCB_TAG_INITIAL; in mdb_wcb_create()
68 wcb->w_walker = iwp; in mdb_wcb_create()
70 wcb->w_state.walk_callback = cb; in mdb_wcb_create()
71 wcb->w_state.walk_cbdata = data; in mdb_wcb_create()
72 wcb->w_state.walk_addr = addr; in mdb_wcb_create()
[all …]
H A Dmdb_modapi.c462 walk_step(mdb_wcb_t *wcb) in walk_step() argument
464 mdb_wcb_t *nwcb = wcb->w_lyr_head; in walk_step()
475 return (wcb->w_walker->iwlk_step(&wcb->w_state)); in walk_step()
478 wcb->w_lyr_head = nwcb->w_lyr_link; in walk_step()
483 if (status == WALK_DONE && wcb->w_lyr_head != NULL) in walk_step()
490 walk_common(mdb_wcb_t *wcb) in walk_common() argument
500 mdb_wcb_insert(wcb, pfp); in walk_common()
502 mdb_wcb_insert(wcb, mdb.m_frame); in walk_common()
508 if ((status = wcb->w_walker->iwlk_init(&wcb->w_state)) != WALK_NEXT) { in walk_common()
518 wcb->w_inited = TRUE; in walk_common()
[all …]
/titanic_50/usr/src/lib/libtnfprobe/
H A Dtnf_buf.c96 tnfw_b_alloc_block(TNFW_B_WCB *wcb, enum tnf_alloc_mode istag) in tnfw_b_alloc_block() argument
131 if (!wcb->tnfw_w_initialized) { in tnfw_b_alloc_block()
134 wcb->tnfw_w_block_shift = wcb->tnfw_w_gen_shift = 0; in tnfw_b_alloc_block()
137 ++wcb->tnfw_w_block_shift; in tnfw_b_alloc_block()
142 ++wcb->tnfw_w_gen_shift; in tnfw_b_alloc_block()
144 wcb->tnfw_w_pid = _tnfw_b_control->tnf_pid; in tnfw_b_alloc_block()
145 wcb->tnfw_w_initialized = B_TRUE; in tnfw_b_alloc_block()
166 blocknum = i >> wcb->tnfw_w_block_shift; in tnfw_b_alloc_block()
185 generation = (hint_hi << (32 - wcb->tnfw_w_gen_shift)) | in tnfw_b_alloc_block()
186 (hint_lo >> wcb->tnfw_w_gen_shift); in tnfw_b_alloc_block()
[all …]
H A Dtrace_funcs.c102 TNFW_B_WCB *wcb; in tnf_trace_alloc() local
182 wcb = &(ops->wcb); in tnf_trace_alloc()
185 sprintf(tmp_buf, "tnf_trace_alloc, wcb=%p\n", wcb); in tnf_trace_alloc()
189 buffer = ops->alloc(wcb, asize, ops->mode); in tnf_trace_alloc()
274 TNFW_B_GIVEBACK(wcb, fwd_p); in tnf_trace_alloc()
360 (void) set_p->tpd_p->commit(&(set_p->tpd_p->wcb)); in tnf_trace_commit()
379 (void) set_p->tpd_p->rollback(&(set_p->tpd_p->wcb)); in tnf_trace_rollback()
401 retval = ops->alloc(&(ops->wcb), size, ops->mode); in tnf_allocate()
H A Dtnf_buf.h153 #define TNFW_B_GIVEBACK(wcb, new_pos) \ argument
154 ((wcb)->tnfw_w_pos.tnfw_w_write_off = \
155 (((char *)(new_pos) - (char *)((wcb)->tnfw_w_pos.tnfw_w_block) + 7) \
H A Dtnf_trace.h112 TNFW_B_WCB wcb; member
H A Dprobe_cntl.c629 tnfw_b_release_block(&ops->wcb); in tnf_thread_disable()
722 (void) ops->commit(&(ops->wcb)); in common_fork()
/titanic_50/usr/src/uts/common/tnf/
H A Dtrace_funcs.c97 TNFW_B_WCB *wcb; in tnf_trace_alloc() local
146 wcb = &ops->wcb; in tnf_trace_alloc()
148 TNFW_B_ALLOC(wcb, asize, buffer, probe_event_prototype_t *); in tnf_trace_alloc()
219 TNFW_B_GIVEBACK(wcb, fwd_p); in tnf_trace_alloc()
221 TNFW_B_GIVEBACK(wcb, fwd_p); in tnf_trace_alloc()
287 TNFW_B_WCB *wcb; in tnf_trace_commit() local
291 wcb = &ops->wcb; in tnf_trace_commit()
294 pos = &wcb->tnfw_w_pos; in tnf_trace_commit()
298 pos = &wcb->tnfw_w_tag_pos; in tnf_trace_commit()
312 TNFW_B_WCB *wcb; in tnf_trace_rollback() local
[all …]
H A Dtnf_buf.h164 #define TNFW_B_ALLOC(wcb, size, buf, typ) \ argument
173 xx_pos = &(wcb)->tnfw_w_pos; \
183 buf = tnfw_b_alloc((wcb), xx_size, TNF_ALLOC_REUSABLE);\
189 #define TNFW_B_GIVEBACK(wcb, new_pos) \ argument
190 ((wcb)->tnfw_w_pos.tnfw_w_write_off = \
192 - (char *)((wcb)->tnfw_w_pos.tnfw_w_block) + 7) \
H A Dtrace_init.c124 pos = &ops->wcb.tnfw_w_tag_pos; in tnf_trace_init()
126 pos = &ops->wcb.tnfw_w_pos; in tnf_trace_init()
H A Dtnf_buf.c226 tnfw_b_alloc(TNFW_B_WCB *wcb, size_t size, enum tnf_alloc_mode istag) in tnfw_b_alloc() argument
233 pos = &wcb->tnfw_w_pos; /* common case */ in tnfw_b_alloc()
235 pos = &wcb->tnfw_w_tag_pos; in tnfw_b_alloc()
308 tnfw_b_fw_alloc(TNFW_B_WCB *wcb) in tnfw_b_fw_alloc() argument
H A Dtnf_res.c200 block = ops->wcb.tnfw_w_pos.tnfw_w_block; in tnf_thread_exit()
201 ops->wcb.tnfw_w_pos.tnfw_w_block = NULL; in tnf_thread_exit()
204 block = ops->wcb.tnfw_w_tag_pos.tnfw_w_block; in tnf_thread_exit()
205 ops->wcb.tnfw_w_tag_pos.tnfw_w_block = NULL; in tnf_thread_exit()
H A Dtnf_trace.h90 TNFW_B_WCB wcb; /* write control info */ member
H A Dtnf_types.h91 mem = BUF_ALLOC(ops)(&(ops->wcb), size, ops->mode); \
99 mem = BUF_ALLOC(ops)(&(ops->wcb), size, ops->mode); \
H A Dtnf_probe.c96 fwp = tnfw_b_fw_alloc(&(ops->wcb)); in tnf_probe_tag()
/titanic_50/usr/src/cmd/make/bin/
H A Drep.cc102 wchar_t * wcb = rns.get_string(); in report_recursive_init() local
124 if (IS_WEQUALN(&colon[2], wcb, in report_recursive_init()
184 wchar_t * wcb = get_wstring(target->string_mb); // XXX Tolik: needs retmem in report_recursive_dep() local
185 rp->target = wcb; in report_recursive_dep()
227 wchar_t * wcb = tstr.get_string(); in find_recursive_target() local
241 if (IS_WEQUAL(rp->target, wcb)) { in find_recursive_target()
261 IS_WEQUAL(rp->target, wcb)) { in find_recursive_target()
265 if (IS_WEQUAL(rp->target, wcb)) { in find_recursive_target()
H A Ddosys.cc86 Wstring wcb(command); in dosys() local
87 register wchar_t *p = wcb.get_string(); in dosys()
125 wcb.get_string(), in dosys()
H A Dread2.cc657 wchar_t * wcb = tstr.get_string(); in enter_dependencies() local
660 ((wcb[0] != (int) period_char) || in enter_dependencies()
661 wcschr(wcb, (int) slash_char))) { in enter_dependencies()
749 if ((wcb[0] == (int) period_char) && in enter_dependencies()
750 !wcschr(wcb, (int) slash_char)) { in enter_dependencies()
758 if ((wcb[0] == (int) period_char) && in enter_dependencies()
759 !wcschr(wcb, (int) slash_char)) { in enter_dependencies()
947 Wstring wcb(target); in enter_percent() local
948 cp = wcb.get_string(); in enter_percent()
964 cp = wcb.get_string(); in enter_percent()
[all …]
H A Ddoname.cc214 Wstring wcb(target); in find_dyntarget() local
226 if (wcb.equal(tbuffer)) { in find_dyntarget()
241 if (wcb.equal(tbuffer)) { in find_dyntarget()
1477 Wstring wcb; in dynamic_dependencies() local
1490 wcb.init(dependency->name); in dynamic_dependencies()
1491 if ((start = (wchar_t *) wcschr(wcb.get_string(), in dynamic_dependencies()
1496 wcb.get_string(), in dynamic_dependencies()
1497 start - wcb.get_string()); in dynamic_dependencies()
1498 buffer[start-wcb.get_string()] = in dynamic_dependencies()
1502 (int) (dependency->name->hash.length-(start-wcb.get_string())-2)); in dynamic_dependencies()
[all …]
H A Dmisc.cc399 Wstring wcb(p); in dump_make_state() local
400 if (wcb.get_string()[0] == (int) period_char) { in dump_make_state()
496 wchar_t * wcb = str.get_string(); in dump_target_list() local
498 ((wcb[0] != (int) period_char) || in dump_target_list()
499 ((wcb[0] == (int) period_char) && in dump_target_list()
500 (wcschr(wcb, (int) slash_char))))) { in dump_target_list()
H A Dfiles.cc222 Wstring wcb(getvar(vpath_name)); in vpath_exists() local
225 vpath = wcb.get_string(); in vpath_exists()
306 Wstring wcb(dir); in read_dir() local
326 if ((dir->hash.length > 1) || (wcb.get_string()[0] != (int) period_char)) { in read_dir()
327 (void) wcscpy(file_name, wcb.get_string()); in read_dir()
H A Dar.cc201 wchar_t * wcb = member_string.get_string(); in read_archive() local
202 if((slash = (wchar_t *) wcsrchr(wcb, (int) slash_char)) != NULL) { in read_archive()
H A Dread.cc118 wchar_t * wcb = get_wstring(makefile_name->string_mb); in read_simple_file() local
133 (wcb[0] != (int) hyphen_char)) { in read_simple_file()
266 retmem(wcb); in read_simple_file()
334 file_being_read = wcb; in read_simple_file()
/titanic_50/usr/src/lib/libc_db/common/
H A Dthread_db.c3000 waiter_cb_ctl_t *wcb = arg; in waiters_cb() local
3008 wcb->errcode = TD_DBERR; in waiters_cb()
3018 wcb->errcode = TD_DBERR; in waiters_cb()
3023 wcb->errcode = TD_ERR; in waiters_cb()
3031 if (wchan == (caddr_t)wcb->sync_obj_addr) in waiters_cb()
3032 return ((*wcb->waiter_cb)(th_p, wcb->waiter_cb_arg)); in waiters_cb()
3048 waiter_cb_ctl_t wcb; in __td_sync_waiters() local
3055 (caddr_t)&wcb.sync_magic, sizeof (wcb.sync_magic)) != PS_OK) { in __td_sync_waiters()
3061 switch (wcb.sync_magic) { in __td_sync_waiters()
3071 wcb.waiter_cb = cb; in __td_sync_waiters()
[all …]
/titanic_50/usr/src/cmd/make/lib/mksh/
H A Dmacro.cc1087 Wstring wcb; in setvar_daemon() local
1097 wcb.init(value); in setvar_daemon()
1098 length = wcb.length(); in setvar_daemon()
1099 val_string = wcb.get_string(); in setvar_daemon()
1133 wcb.init(value); in setvar_daemon()
1134 if(wcb.length() > 0) { in setvar_daemon()
1146 wcb.init(value); in setvar_daemon()

12