Lines Matching refs:tp

498 		fasttrap_tracepoint_t *tp;
502 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
503 if (tp->ftt_pid == ppid &&
504 tp->ftt_proc->ftpc_acount != 0) {
505 fasttrap_tracepoint_remove(cp, tp);
514 ASSERT(tp->ftt_proc->ftpc_acount != 0);
594 fasttrap_tracepoint_t *tp, *new_tp = NULL;
629 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
636 if (tp->ftt_pid != pid || tp->ftt_pc != pc ||
637 tp->ftt_proc->ftpc_acount == 0)
654 ASSERT(tp->ftt_ids != NULL || tp->ftt_retids != NULL);
660 id->fti_next = tp->ftt_ids;
662 tp->ftt_ids = id;
668 id->fti_next = tp->ftt_retids;
670 tp->ftt_retids = id;
769 fasttrap_tracepoint_t **pp, *tp;
788 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
789 if (tp->ftt_pid == pid && tp->ftt_pc == pc &&
790 tp->ftt_proc == provider->ftp_proc)
797 ASSERT(tp != NULL);
803 ASSERT(tp->ftt_ids != NULL);
804 idp = &tp->ftt_ids;
809 ASSERT(tp->ftt_retids != NULL);
810 idp = &tp->ftt_retids;
835 if (tp->ftt_ids != NULL || tp->ftt_retids != NULL) {
841 if (tp == probe->ftp_tps[index].fit_tp) {
846 if (tp->ftt_ids != NULL) {
847 tmp_probe = tp->ftt_ids->fti_probe;
849 tmp_index = FASTTRAP_ID_INDEX(tp->ftt_ids);
852 tmp_probe = tp->ftt_retids->fti_probe;
854 tmp_index = FASTTRAP_ID_INDEX(tp->ftt_retids);
864 *tmp_tp = tp;
900 if (fasttrap_tracepoint_remove(p, tp) != 0)
917 while (*pp != tp) {
922 *pp = tp->ftt_next;
1724 fasttrap_tracepoint_t *tp;
1825 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP);
1827 tp = zalloc(fasttrap_tracepoint_t_zone);
1828 bzero(tp, sizeof (fasttrap_tracepoint_t));
1831 tp->ftt_proc = provider->ftp_proc;
1832 tp->ftt_pc = pdata->ftps_offs[i] + pdata->ftps_pc;
1833 tp->ftt_pid = pdata->ftps_pid;
1836 pp->ftp_tps[0].fit_tp = tp;
1892 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP);
1894 tp = zalloc(fasttrap_tracepoint_t_zone);
1895 bzero(tp, sizeof (fasttrap_tracepoint_t));
1898 tp->ftt_proc = provider->ftp_proc;
1899 tp->ftt_pc = pdata->ftps_offs[i] + pdata->ftps_pc;
1900 tp->ftt_pid = pdata->ftps_pid;
1902 pp->ftp_tps[i].fit_tp = tp;
2057 fasttrap_tracepoint_t *tp;
2141 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP);
2143 tp = zalloc(fasttrap_tracepoint_t_zone);
2144 bzero(tp, sizeof (fasttrap_tracepoint_t));
2147 tp->ftt_proc = provider->ftp_proc;
2158 tp->ftt_pc = dhpb->dthpb_base + (int64_t)dhpb->dthpb_offs[i] - 1;
2164 tp->ftt_pc = dhpb->dthpb_base + dhpb->dthpb_offs[i];
2166 tp->ftt_pid = provider->ftp_pid;
2168 pp->ftp_tps[i].fit_tp = tp;
2182 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP);
2184 tp = zalloc(fasttrap_tracepoint_t_zone);
2185 bzero(tp, sizeof (fasttrap_tracepoint_t));
2188 tp->ftt_proc = provider->ftp_proc;
2199 tp->ftt_pc = dhpb->dthpb_base + (int64_t)dhpb->dthpb_enoffs[j] + 2;
2205 tp->ftt_pc = dhpb->dthpb_base + dhpb->dthpb_enoffs[j];
2207 tp->ftt_pid = provider->ftp_pid;
2209 pp->ftp_tps[i].fit_tp = tp;
2357 fasttrap_tracepoint_t *tp;
2391 tp = fasttrap_tpoints.fth_table[index].ftb_data;
2392 while (tp != NULL) {
2393 if (instr.ftiq_pid == tp->ftt_pid &&
2394 instr.ftiq_pc == tp->ftt_pc &&
2395 tp->ftt_proc->ftpc_acount != 0)
2398 tp = tp->ftt_next;
2401 if (tp == NULL) {
2406 bcopy(&tp->ftt_instr, &instr.ftiq_instr,