Lines Matching refs:svar
805 dtrace_statvar_t *svar = svars[i];
809 if (svar == NULL || (size = svar->dtsv_size) == 0)
812 scope = svar->dtsv_var.dtdv_scope;
823 if (DTRACE_INRANGE(addr, sz, svar->dtsv_data,
824 svar->dtsv_size)) {
825 DTRACE_RANGE_REMAIN(remain, addr, svar->dtsv_data,
826 svar->dtsv_size);
6334 dtrace_statvar_t *svar;
6626 svar = vstate->dtvs_globals[id];
6627 ASSERT(svar != NULL);
6628 v = &svar->dtsv_var;
6631 regs[rd] = svar->dtsv_data;
6635 a = (uintptr_t)svar->dtsv_data;
6661 svar = vstate->dtvs_globals[id];
6662 ASSERT(svar != NULL);
6663 v = &svar->dtsv_var;
6666 uintptr_t a = (uintptr_t)svar->dtsv_data;
6670 ASSERT(svar->dtsv_size != 0);
6689 svar->dtsv_data = regs[rd];
6717 svar = vstate->dtvs_locals[id];
6718 ASSERT(svar != NULL);
6719 v = &svar->dtsv_var;
6722 uintptr_t a = (uintptr_t)svar->dtsv_data;
6727 ASSERT(svar->dtsv_size == NCPU * sz);
6744 ASSERT(svar->dtsv_size == NCPU * sizeof (uint64_t));
6745 tmp = (uint64_t *)(uintptr_t)svar->dtsv_data;
6757 svar = vstate->dtvs_locals[id];
6758 ASSERT(svar != NULL);
6759 v = &svar->dtsv_var;
6762 uintptr_t a = (uintptr_t)svar->dtsv_data;
6767 ASSERT(svar->dtsv_size == NCPU * sz);
6788 ASSERT(svar->dtsv_size == NCPU * sizeof (uint64_t));
6789 tmp = (uint64_t *)(uintptr_t)svar->dtsv_data;
10361 dtrace_statvar_t *svar;
10363 if ((svar = vstate->dtvs_globals[ndx]) != NULL)
10364 existing = &svar->dtsv_var;
10382 dtrace_statvar_t *svar;
10384 if ((svar = vstate->dtvs_locals[ndx]) != NULL)
10385 existing = &svar->dtsv_var;
10871 dtrace_statvar_t *svar, ***svarp = NULL;
10954 if ((svar = (*svarp)[id]) == NULL) {
10955 svar = kmem_zalloc(sizeof (dtrace_statvar_t), KM_SLEEP);
10956 svar->dtsv_var = *v;
10958 if ((svar->dtsv_size = dsize) != 0) {
10959 svar->dtsv_data = (uint64_t)(uintptr_t)
10963 (*svarp)[id] = svar;
10966 svar->dtsv_refcnt++;
11026 dtrace_statvar_t *svar, **svarp = NULL;
11055 svar = svarp[id];
11056 ASSERT(svar != NULL);
11057 ASSERT(svar->dtsv_refcnt > 0);
11059 if (--svar->dtsv_refcnt > 0)
11062 if (svar->dtsv_size != 0) {
11063 ASSERT(svar->dtsv_data != 0);
11064 kmem_free((void *)(uintptr_t)svar->dtsv_data,
11065 svar->dtsv_size);
11068 kmem_free(svar, sizeof (dtrace_statvar_t));
16086 dtrace_statvar_t *svar;
16088 if ((svar = vstate->dtvs_locals[i]) == NULL)
16091 ASSERT(svar->dtsv_size >= NCPU * sizeof (uint64_t));
16093 ((uint64_t *)(uintptr_t)svar->dtsv_data)[curcpu_id];