Lines Matching refs:bucket
137 * from being freed. A provider is looked up by taking the bucket lock for the
151 * bucket lock before provider lock
398 fasttrap_bucket_t *bucket;
407 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
411 mutex_enter(&bucket->ftb_mtx);
412 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
415 mutex_exit(&bucket->ftb_mtx);
420 mutex_exit(&bucket->ftb_mtx);
469 fasttrap_bucket_t *bucket;
487 bucket = &fasttrap_provs.fth_table[i];
488 mutex_enter(&bucket->ftb_mtx);
489 fpp = (fasttrap_provider_t **)&bucket->ftb_data;
543 mutex_exit(&bucket->ftb_mtx);
669 fasttrap_bucket_t *bucket = &fasttrap_tpoints.fth_table[i];
671 mutex_enter(&bucket->ftb_mtx);
672 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
691 mutex_exit(&bucket->ftb_mtx);
774 fasttrap_bucket_t *bucket;
797 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
809 mutex_enter(&bucket->ftb_mtx);
810 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
859 mutex_exit(&bucket->ftb_mtx);
876 new_tp->ftt_next = bucket->ftb_data;
878 bucket->ftb_data = new_tp;
880 mutex_exit(&bucket->ftb_mtx);
903 mutex_exit(&bucket->ftb_mtx);
957 fasttrap_bucket_t *bucket;
976 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
977 mutex_enter(&bucket->ftb_mtx);
978 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) {
1055 mutex_exit(&bucket->ftb_mtx);
1065 mutex_exit(&bucket->ftb_mtx);
1103 mutex_enter(&bucket->ftb_mtx);
1104 pp = (fasttrap_tracepoint_t **)&bucket->ftb_data;
1114 mutex_exit(&bucket->ftb_mtx);
1486 fasttrap_bucket_t *bucket;
1490 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1491 mutex_enter(&bucket->ftb_mtx);
1493 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
1496 mutex_exit(&bucket->ftb_mtx);
1507 * Drop the bucket lock so we don't try to perform a sleeping
1510 mutex_exit(&bucket->ftb_mtx);
1521 mutex_enter(&bucket->ftb_mtx);
1525 * been created for this pid while we weren't under the bucket lock.
1527 for (fprc = bucket->ftb_data; fprc != NULL; fprc = fprc->ftpc_next) {
1530 mutex_exit(&bucket->ftb_mtx);
1542 new_fprc->ftpc_next = bucket->ftb_data;
1543 bucket->ftb_data = new_fprc;
1545 mutex_exit(&bucket->ftb_mtx);
1553 fasttrap_bucket_t *bucket;
1606 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1607 mutex_enter(&bucket->ftb_mtx);
1609 fprcp = (fasttrap_proc_t **)&bucket->ftb_data;
1624 mutex_exit(&bucket->ftb_mtx);
1640 fasttrap_bucket_t *bucket;
1648 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1649 mutex_enter(&bucket->ftb_mtx);
1654 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1658 mutex_exit(&bucket->ftb_mtx);
1664 * Drop the bucket lock so we don't try to perform a sleeping
1667 mutex_exit(&bucket->ftb_mtx);
1702 mutex_enter(&bucket->ftb_mtx);
1706 * been created for this pid while we weren't under the bucket lock.
1708 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1712 mutex_exit(&bucket->ftb_mtx);
1734 mutex_exit(&bucket->ftb_mtx);
1740 new_fp->ftp_next = bucket->ftb_data;
1741 bucket->ftb_data = new_fp;
1744 mutex_exit(&bucket->ftb_mtx);
1785 * modifications to it because we have locked the bucket that
1803 fasttrap_bucket_t *bucket;
1808 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1809 mutex_enter(&bucket->ftb_mtx);
1811 for (fp = bucket->ftb_data; fp != NULL; fp = fp->ftp_next) {
1818 mutex_exit(&bucket->ftb_mtx);
1826 mutex_exit(&bucket->ftb_mtx);
1838 * We obviously need to take the bucket lock before the provider lock
1842 * bucket lock therefore protects the integrity of the provider hash
1860 mutex_exit(&bucket->ftb_mtx);
2521 "tracepoints bucket mtx", MUTEX_DEFAULT, NULL);
2539 "providers bucket mtx", MUTEX_DEFAULT, NULL);
2575 "processes bucket mtx", MUTEX_DEFAULT, NULL);
2622 fasttrap_bucket_t *bucket = &fasttrap_provs.fth_table[i];
2624 mutex_enter(&bucket->ftb_mtx);
2625 fpp = (fasttrap_provider_t **)&bucket->ftb_data;
2631 * bucket lock so there's no chance of another thread
2646 mutex_exit(&bucket->ftb_mtx);