Lines Matching refs:svar
673 dtrace_statvar_t *svar = svars[i];
675 if (svar == NULL || svar->dtsv_size == 0)
678 if (addr - svar->dtsv_data < svar->dtsv_size &&
679 addr + sz <= svar->dtsv_data + svar->dtsv_size)
4211 dtrace_statvar_t *svar;
4495 svar = vstate->dtvs_globals[id];
4496 ASSERT(svar != NULL);
4497 v = &svar->dtsv_var;
4500 regs[rd] = svar->dtsv_data;
4504 a = (uintptr_t)svar->dtsv_data;
4529 svar = vstate->dtvs_globals[id];
4530 ASSERT(svar != NULL);
4531 v = &svar->dtsv_var;
4534 uintptr_t a = (uintptr_t)svar->dtsv_data;
4537 ASSERT(svar->dtsv_size != 0);
4552 svar->dtsv_data = regs[rd];
4580 svar = vstate->dtvs_locals[id];
4581 ASSERT(svar != NULL);
4582 v = &svar->dtsv_var;
4585 uintptr_t a = (uintptr_t)svar->dtsv_data;
4589 ASSERT(svar->dtsv_size == (int)NCPU * sz);
4606 ASSERT(svar->dtsv_size == (int)NCPU * sizeof (uint64_t));
4607 tmp = (uint64_t *)(uintptr_t)svar->dtsv_data;
4619 svar = vstate->dtvs_locals[id];
4620 ASSERT(svar != NULL);
4621 v = &svar->dtsv_var;
4624 uintptr_t a = (uintptr_t)svar->dtsv_data;
4628 ASSERT(svar->dtsv_size == (int)NCPU * sz);
4644 ASSERT(svar->dtsv_size == (int)NCPU * sizeof (uint64_t));
4645 tmp = (uint64_t *)(uintptr_t)svar->dtsv_data;
8094 dtrace_statvar_t *svar;
8096 if ((svar = vstate->dtvs_globals[ndx]) != NULL)
8097 existing = &svar->dtsv_var;
8109 dtrace_statvar_t *svar;
8111 if ((svar = vstate->dtvs_locals[ndx]) != NULL)
8112 existing = &svar->dtsv_var;
8532 dtrace_statvar_t *svar, ***svarp;
8615 if ((svar = (*svarp)[id]) == NULL) {
8616 svar = kmem_zalloc(sizeof (dtrace_statvar_t), KM_SLEEP);
8617 svar->dtsv_var = *v;
8619 if ((svar->dtsv_size = dsize) != 0) {
8620 svar->dtsv_data = (uint64_t)(uintptr_t)
8624 (*svarp)[id] = svar;
8627 svar->dtsv_refcnt++;
8687 dtrace_statvar_t *svar, **svarp;
8716 svar = svarp[id];
8717 ASSERT(svar != NULL);
8718 ASSERT(svar->dtsv_refcnt > 0);
8720 if (--svar->dtsv_refcnt > 0)
8723 if (svar->dtsv_size != 0) {
8724 ASSERT(svar->dtsv_data != NULL);
8725 kmem_free((void *)(uintptr_t)svar->dtsv_data,
8726 svar->dtsv_size);
8729 kmem_free(svar, sizeof (dtrace_statvar_t));
13108 dtrace_statvar_t *svar;
13110 if ((svar = vstate->dtvs_locals[i]) == NULL)
13113 ASSERT(svar->dtsv_size >= (int)NCPU * sizeof (uint64_t));
13115 ((uint64_t *)(uintptr_t)svar->dtsv_data)[CPU->cpu_id];