EPICS Multi-Core Utilities  1.2.2-SNAPSHOT
Real-Time Utilities for EPICS IOCs on Multi-Core Linux
 All Files Functions Variables Typedefs Macros Groups Pages
Files | Functions
Real-Time threadShow Routines

Add two new threadShow functions that show scheduling policy and CPU affinity. More...

Files

file  threadShow.c
 New threadShow showing real-time properties.
 

Functions

epicsShareFunc void mcoreThreadShowInit (void)
 Initialization routine.
 
epicsShareFunc void mcoreThreadShow (epicsThreadId thread, unsigned int level)
 iocShell: Show thread info for one thread.
 
epicsShareFunc void mcoreThreadShowAll (unsigned int level)
 iocShell: Show thread info for all threads.
 

Detailed Description

Add two new threadShow functions that show scheduling policy and CPU affinity.

Adds two new threadShow functions that, in addition to the properties shown by epicsThreadShow() and epicsThreadShowAll(), print the scheduling policy, and the CPU affinity of each thread.

Uses the epicsThreadMap() call to have a hook function being called for every thread, which prints out the thread properties.

Function Documentation

epicsShareFunc void mcoreThreadShow ( epicsThreadId  thread,
unsigned int  level 
)

iocShell: Show thread info for one thread.

Sets the global thread and level variables, and calls the map function.

Parameters
threadid of thread to show
levelverbosity level
IOC Shell
mcoreThreadShow thread level
thread thread name or id
level verbosity level

Definition at line 122 of file threadShow.c.

epicsShareFunc void mcoreThreadShowAll ( unsigned int  level)

iocShell: Show thread info for all threads.

Parameters
levelverbosity level
IOC Shell
mcoreThreadShowAll level
level verbosity level

Definition at line 136 of file threadShow.c.

epicsShareFunc void mcoreThreadShowInit ( void  )

Initialization routine.

Must be called before using any of the other functions, which is done when registering the iocsh commands.

Definition at line 154 of file threadShow.c.