Lines Matching defs:tstat_buffer
525 static tstat_data_t *tstat_buffer; /* staging buffer for outgoing data */
801 * interposing trap table. We can safely use tstat_buffer because
805 bcopy(tcpu->tcpu_data, tstat_buffer, TSTAT_DATA_SIZE);
807 bcopy(tcpu->tcpu_data, tstat_buffer, tstat_data_t_size);
821 bcopy(tstat_buffer, tcpu->tcpu_data, TSTAT_DATA_SIZE);
824 bcopy(tstat_buffer, tcpu->tcpu_data, tstat_data_t_size);
1021 bcopy(data, tstat_buffer, tstat_data_t_size);
1026 * copy them directly into the tstat_buffer output.
1030 tstat_buffer->tdata_cpuid = CPU->cpu_id;
1031 tstat_buffer->tdata_peffect = tcpu->tcpu_tdata_peffect;
1032 tstat_buffer->tdata_snapts = gethrtime();
1033 tstat_buffer->tdata_snaptick = rdtick();
1039 &tstat_buffer->tdata_pgsz[0],
1047 cpu_trapstat_data((void *) tstat_buffer->tdata_pgsz,
1053 * Copy all the 4K data area into tstat_buffer tdata_trap
1056 bcopy(data, &tstat_buffer->tdata_traps[0], TSTAT_DATA_SIZE);
2182 * Preserve this CPU's data in tstat_buffer and rip down its
2186 bcopy(tcpu->tcpu_data, tstat_buffer, TSTAT_DATA_SIZE);
2188 bcopy(tcpu->tcpu_data, tstat_buffer, tstat_data_t_size);
2200 bcopy(tstat_buffer, tcpu->tcpu_data, TSTAT_DATA_SIZE);
2202 bcopy(tstat_buffer, tcpu->tcpu_data, tstat_data_t_size);
2407 tstat_buffer->tdata_cpuid = -1;
2410 if (tstat_buffer->tdata_cpuid == -1) {
2439 tp = &tstat_buffer->tdata_pgsz[0];
2448 if (copyout(tstat_buffer, (void *)arg, dsize) != 0) {
2538 * For sun4v, the tstat_data_t_size reflect the tstat_buffer
2561 tstat_buffer = kmem_alloc(tstat_data_t_size, KM_SLEEP);
2599 kmem_free(tstat_buffer, tstat_data_t_size);