Lines Matching refs:stats
852 uint32_t IOStatistics::copyGlobalStatistics(IOStatisticsGlobal *stats)
854 stats->kextCount = loadedKexts;
855 stats->classCount = registeredClasses;
856 stats->workloops = registeredWorkloops;
861 uint32_t IOStatistics::copyKextStatistics(IOStatisticsKext *stats)
868 stats->loadTag = ke->loadTag;
869 ke->kext->getSizeInfo(&stats->loadSize, &stats->wiredSize);
871 stats->classes = ke->classes;
875 stats->classIndexes[index++] = ce->classID;
878 stats = (IOStatisticsKext *)((void*)((char*)stats + sizeof(IOStatisticsKext) + (ke->classes * sizeof(uint32_t))));
884 uint32_t IOStatistics::copyMemoryStatistics(IOStatisticsMemory *stats)
889 stats->allocatedSize = ke->memoryCounters[kIOStatisticsMalloc];
890 stats->freedSize = ke->memoryCounters[kIOStatisticsFree];
891 stats->allocatedAlignedSize = ke->memoryCounters[kIOStatisticsMallocAligned];
892 stats->freedAlignedSize = ke->memoryCounters[kIOStatisticsFreeAligned];
893 stats->allocatedContiguousSize = ke->memoryCounters[kIOStatisticsMallocContiguous];
894 stats->freedContiguousSize = ke->memoryCounters[kIOStatisticsFreeContiguous];
895 stats->allocatedPageableSize = ke->memoryCounters[kIOStatisticsMallocPageable];
896 stats->freedPageableSize = ke->memoryCounters[kIOStatisticsFreePageable];
897 stats++;
903 uint32_t IOStatistics::copyClassStatistics(IOStatisticsClass *stats)
910 stats->classID = ce->classID;
911 stats->superClassID = ce->superClassID;
912 stats->classSize = ce->metaClass->getClassSize();
914 stats++;
921 uint32_t IOStatistics::copyCounterStatistics(IOStatisticsCounter *stats)
931 stats->classID = ce->classID;
932 stats->classInstanceCount = ce->metaClass->getInstanceCount();
934 IOStatisticsUserClients *uc = &stats->userClientStatistics;
942 IOStatisticsInterruptEventSources *iec = &stats->interruptEventSourceStatistics;
943 IOStatisticsInterruptEventSources *fiec = &stats->filterInterruptEventSourceStatistics;
944 IOStatisticsTimerEventSources *tec = &stats->timerEventSourceStatistics;
945 IOStatisticsCommandGates *cgc = &stats->commandGateStatistics;
946 IOStatisticsCommandQueues *cqc = &stats->commandQueueStatistics;
947 IOStatisticsDerivedEventSources *dec = &stats->derivedEventSourceStatistics;
990 stats++;
1024 uint32_t IOStatistics::copyWorkLoopStatistics(IOStatisticsWorkLoop *stats)
1033 stats->kextLoadTag = ke->loadTag;
1034 stats->attachedEventSources = wlc->attachedEventSources;
1035 stats->timeOnGate = wlc->timeOnGate;
1036 stats->dependentKexts = 0;
1038 stats->dependentKextLoadTags[stats->dependentKexts] = dependentNode->loadTag;
1039 stats->dependentKexts++;
1042 size = sizeof(IOStatisticsWorkLoop) + (sizeof(uint32_t) * stats->dependentKexts);
1045 stats = (IOStatisticsWorkLoop*)((void*)((char*)stats + size));
1052 uint32_t IOStatistics::copyUserClientStatistics(IOStatisticsUserClientHeader *stats, uint32_t loadTag)
1070 strncpy(stats->userClientCalls[procs].processName, processEntry->processName, kIOStatisticsProcessNameLength);
1071 stats->userClientCalls[procs].pid = processEntry->pid;
1072 stats->userClientCalls[procs].calls = processEntry->calls;
1073 stats->processes++;
1077 return sizeof(IOStatisticsUserClientCall) * stats->processes;