Deleted Added
full compact
fasttrap.c (179198) fasttrap.c (184698)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 2030 unchanged lines hidden (view full) ---

2039 mutex_enter(&fasttrap_tpoints.fth_table[index].ftb_mtx);
2040 tp = fasttrap_tpoints.fth_table[index].ftb_data;
2041 while (tp != NULL) {
2042 if (instr.ftiq_pid == tp->ftt_pid &&
2043 instr.ftiq_pc == tp->ftt_pc &&
2044 tp->ftt_proc->ftpc_acount != 0)
2045 break;
2046
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 2030 unchanged lines hidden (view full) ---

2039 mutex_enter(&fasttrap_tpoints.fth_table[index].ftb_mtx);
2040 tp = fasttrap_tpoints.fth_table[index].ftb_data;
2041 while (tp != NULL) {
2042 if (instr.ftiq_pid == tp->ftt_pid &&
2043 instr.ftiq_pc == tp->ftt_pc &&
2044 tp->ftt_proc->ftpc_acount != 0)
2045 break;
2046
2047 /*
2048 * The count of active providers can only be
2049 * decremented (i.e. to zero) during exec, exit, and
2050 * removal of a meta provider so it should be
2051 * impossible to drop the count during this operation().
2052 */
2053 ASSERT(tp->ftt_proc->ftpc_acount != 0);
2054 tp = tp->ftt_next;
2055 }
2056
2057 if (tp == NULL) {
2058 mutex_exit(&fasttrap_tpoints.fth_table[index].ftb_mtx);
2059 return (ENOENT);
2060 }
2061

--- 322 unchanged lines hidden ---
2047 tp = tp->ftt_next;
2048 }
2049
2050 if (tp == NULL) {
2051 mutex_exit(&fasttrap_tpoints.fth_table[index].ftb_mtx);
2052 return (ENOENT);
2053 }
2054

--- 322 unchanged lines hidden ---