Lines Matching refs:tp

430 		fasttrap_tracepoint_t *tp;
434 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
435 if (tp->ftt_pid == ppid &&
436 tp->ftt_proc->ftpc_acount != 0) {
437 int ret = fasttrap_tracepoint_remove(cp, tp);
447 ASSERT(tp->ftt_proc->ftpc_acount != 0);
492 fasttrap_tracepoint_t *tp, *new_tp = NULL;
527 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
534 if (tp->ftt_pid != pid || tp->ftt_pc != pc ||
535 tp->ftt_proc->ftpc_acount == 0)
552 ASSERT(tp->ftt_ids != NULL || tp->ftt_retids != NULL);
558 id->fti_next = tp->ftt_ids;
560 tp->ftt_ids = id;
566 id->fti_next = tp->ftt_retids;
568 tp->ftt_retids = id;
667 fasttrap_tracepoint_t **pp, *tp;
686 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
687 if (tp->ftt_pid == pid && tp->ftt_pc == pc &&
688 tp->ftt_proc == provider->ftp_proc)
695 ASSERT(tp != NULL);
701 ASSERT(tp->ftt_ids != NULL);
702 idp = &tp->ftt_ids;
707 ASSERT(tp->ftt_retids != NULL);
708 idp = &tp->ftt_retids;
731 if (tp->ftt_ids != NULL || tp->ftt_retids != NULL) {
737 if (tp == probe->ftp_tps[index].fit_tp) {
742 if (tp->ftt_ids != NULL) {
743 tmp_probe = tp->ftt_ids->fti_probe;
745 tmp_index = FASTTRAP_ID_INDEX(tp->ftt_ids);
748 tmp_probe = tp->ftt_retids->fti_probe;
750 tmp_index = FASTTRAP_ID_INDEX(tp->ftt_retids);
760 *tmp_tp = tp;
795 if (fasttrap_tracepoint_remove(p, tp) != 0)
812 while (*pp != tp) {
817 *pp = tp->ftt_next;
1528 fasttrap_tracepoint_t *tp;
1602 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t),
1605 tp->ftt_proc = provider->ftp_proc;
1606 tp->ftt_pc = pdata->ftps_offs[i] + pdata->ftps_pc;
1607 tp->ftt_pid = pdata->ftps_pid;
1609 pp->ftp_tps[0].fit_tp = tp;
1653 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t),
1656 tp->ftt_proc = provider->ftp_proc;
1657 tp->ftt_pc = pdata->ftps_offs[i] + pdata->ftps_pc;
1658 tp->ftt_pid = pdata->ftps_pid;
1660 pp->ftp_tps[i].fit_tp = tp;
1773 fasttrap_tracepoint_t *tp;
1839 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP);
1841 tp->ftt_proc = provider->ftp_proc;
1842 tp->ftt_pc = dhpb->dthpb_base + dhpb->dthpb_offs[i];
1843 tp->ftt_pid = provider->ftp_pid;
1845 pp->ftp_tps[i].fit_tp = tp;
1858 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP);
1860 tp->ftt_proc = provider->ftp_proc;
1861 tp->ftt_pc = dhpb->dthpb_base + dhpb->dthpb_enoffs[j];
1862 tp->ftt_pid = provider->ftp_pid;
1864 pp->ftp_tps[i].fit_tp = tp;
2006 fasttrap_tracepoint_t *tp;
2041 tp = fasttrap_tpoints.fth_table[index].ftb_data;
2042 while (tp != NULL) {
2043 if (instr.ftiq_pid == tp->ftt_pid &&
2044 instr.ftiq_pc == tp->ftt_pc &&
2045 tp->ftt_proc->ftpc_acount != 0)
2048 tp = tp->ftt_next;
2051 if (tp == NULL) {
2056 bcopy(&tp->ftt_instr, &instr.ftiq_instr,