The Pedigree Project 0.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
InterruptTimeAccounting Class Reference

#include <InterruptTimeAccounting.h>

+ Collaboration diagram for InterruptTimeAccounting:

Public Member Functions

 InterruptTimeAccounting (bool fromUserspace)
 

Static Public Member Functions

static void finishUserReturn (Thread *thread)
 

Private Member Functions

 InterruptTimeAccounting (const InterruptTimeAccounting &)=delete
 
InterruptTimeAccountingoperator= (const InterruptTimeAccounting &)=delete
 

Private Attributes

Threadm_pThread
 
bool m_bFromUserspace
 

Detailed Description

Accounts one raw interrupt frame without invoking an arbitrary callback.

Construction and destruction perform only a monotonic clock sample and the fixed lock-free Thread/Process accounting publication path. Timer mutation and signal delivery belong to the ordinary accounting worker.

Definition at line 21 of file InterruptTimeAccounting.h.

Constructor & Destructor Documentation

◆ InterruptTimeAccounting()

InterruptTimeAccounting::InterruptTimeAccounting ( bool  fromUserspace)
explicit

Definition at line 14 of file InterruptTimeAccounting.cc.

◆ ~InterruptTimeAccounting()

InterruptTimeAccounting::~InterruptTimeAccounting ( )

Definition at line 25 of file InterruptTimeAccounting.cc.

Member Function Documentation

◆ finishUserReturn()

void InterruptTimeAccounting::finishUserReturn ( Thread thread)
static

Charges the completed return tail and begins the next user slice.

Definition at line 39 of file InterruptTimeAccounting.cc.

References Thread::currentTimeAccountingMode(), and Thread::transitionTimeAtInterruptReturn().

Referenced by X64InterruptManager::returnFromInterrupt(), and HostedInterruptManager::signalShim().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bFromUserspace

bool InterruptTimeAccounting::m_bFromUserspace
private

Definition at line 31 of file InterruptTimeAccounting.h.

◆ m_pThread

Thread* InterruptTimeAccounting::m_pThread
private

Definition at line 30 of file InterruptTimeAccounting.h.


The documentation for this class was generated from the following files: