Lines Matching refs:stats
864 IOStatistics::copyGlobalStatistics(IOStatisticsGlobal *stats) in copyGlobalStatistics() argument
866 stats->kextCount = loadedKexts; in copyGlobalStatistics()
867 stats->classCount = registeredClasses; in copyGlobalStatistics()
868 stats->workloops = registeredWorkloops; in copyGlobalStatistics()
874 IOStatistics::copyKextStatistics(IOStatisticsKext *stats) in copyKextStatistics() argument
881 stats->loadTag = ke->loadTag; in copyKextStatistics()
882 ke->kext->getSizeInfo(&stats->loadSize, &stats->wiredSize); in copyKextStatistics()
884 stats->classes = ke->classes; in copyKextStatistics()
888 stats->classIndexes[index++] = ce->classID; in copyKextStatistics()
891 …stats = (IOStatisticsKext *)((void*)((char*)stats + sizeof(IOStatisticsKext) + (ke->classes * size… in copyKextStatistics()
898 IOStatistics::copyMemoryStatistics(IOStatisticsMemory *stats) in copyMemoryStatistics() argument
903 stats->allocatedSize = ke->memoryCounters[kIOStatisticsMalloc]; in copyMemoryStatistics()
904 stats->freedSize = ke->memoryCounters[kIOStatisticsFree]; in copyMemoryStatistics()
905 stats->allocatedAlignedSize = ke->memoryCounters[kIOStatisticsMallocAligned]; in copyMemoryStatistics()
906 stats->freedAlignedSize = ke->memoryCounters[kIOStatisticsFreeAligned]; in copyMemoryStatistics()
907 stats->allocatedContiguousSize = ke->memoryCounters[kIOStatisticsMallocContiguous]; in copyMemoryStatistics()
908 stats->freedContiguousSize = ke->memoryCounters[kIOStatisticsFreeContiguous]; in copyMemoryStatistics()
909 stats->allocatedPageableSize = ke->memoryCounters[kIOStatisticsMallocPageable]; in copyMemoryStatistics()
910 stats->freedPageableSize = ke->memoryCounters[kIOStatisticsFreePageable]; in copyMemoryStatistics()
911 stats++; in copyMemoryStatistics()
918 IOStatistics::copyClassStatistics(IOStatisticsClass *stats) in copyClassStatistics() argument
925 stats->classID = ce->classID; in copyClassStatistics()
926 stats->superClassID = ce->superClassID; in copyClassStatistics()
927 stats->classSize = ce->metaClass->getClassSize(); in copyClassStatistics()
929 stats++; in copyClassStatistics()
937 IOStatistics::copyCounterStatistics(IOStatisticsCounter *stats) in copyCounterStatistics() argument
947 stats->classID = ce->classID; in copyCounterStatistics()
948 stats->classInstanceCount = ce->metaClass->getInstanceCount(); in copyCounterStatistics()
950 IOStatisticsUserClients *uc = &stats->userClientStatistics; in copyCounterStatistics()
958 IOStatisticsInterruptEventSources *iec = &stats->interruptEventSourceStatistics; in copyCounterStatistics()
959 IOStatisticsInterruptEventSources *fiec = &stats->filterInterruptEventSourceStatistics; in copyCounterStatistics()
960 IOStatisticsTimerEventSources *tec = &stats->timerEventSourceStatistics; in copyCounterStatistics()
961 IOStatisticsCommandGates *cgc = &stats->commandGateStatistics; in copyCounterStatistics()
962 IOStatisticsCommandQueues *cqc = &stats->commandQueueStatistics; in copyCounterStatistics()
963 IOStatisticsDerivedEventSources *dec = &stats->derivedEventSourceStatistics; in copyCounterStatistics()
1006 stats++; in copyCounterStatistics()
1043 IOStatistics::copyWorkLoopStatistics(IOStatisticsWorkLoop *stats) in copyWorkLoopStatistics() argument
1052 stats->kextLoadTag = ke->loadTag; in copyWorkLoopStatistics()
1053 stats->attachedEventSources = wlc->attachedEventSources; in copyWorkLoopStatistics()
1054 stats->timeOnGate = wlc->timeOnGate; in copyWorkLoopStatistics()
1055 stats->dependentKexts = 0; in copyWorkLoopStatistics()
1057 stats->dependentKextLoadTags[stats->dependentKexts] = dependentNode->loadTag; in copyWorkLoopStatistics()
1058 stats->dependentKexts++; in copyWorkLoopStatistics()
1061 size = sizeof(IOStatisticsWorkLoop) + (sizeof(uint32_t) * stats->dependentKexts); in copyWorkLoopStatistics()
1064 stats = (IOStatisticsWorkLoop*)((void*)((char*)stats + size)); in copyWorkLoopStatistics()
1072 IOStatistics::copyUserClientStatistics(IOStatisticsUserClientHeader *stats, uint32_t loadTag) in copyUserClientStatistics() argument
1090 …strncpy(stats->userClientCalls[procs].processName, processEntry->processName, kIOStatisticsProcess… in copyUserClientStatistics()
1091 stats->userClientCalls[procs].pid = processEntry->pid; in copyUserClientStatistics()
1092 stats->userClientCalls[procs].calls = processEntry->calls; in copyUserClientStatistics()
1093 stats->processes++; in copyUserClientStatistics()
1097 return sizeof(IOStatisticsUserClientCall) * stats->processes; in copyUserClientStatistics()