Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/include/sys/sysdc_impl.h
Real path: /usr/include/sys/sysdc_impl.h
Zurück
/* * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved. */ #ifndef _SYS_SYSDC_IMPL_H #define _SYS_SYSDC_IMPL_H #include <sys/types.h> #include <sys/thread.h> #include <sys/time.h> #include <sys/list.h> #include <sys/sysdc.h> #ifdef __cplusplus extern "C" { #endif struct _kthread; struct cpupart; /* * Tracks per-processor-set information for SDC. Its main use is to * implement per-processor-set breaks. */ typedef struct sysdc_pset { list_node_t sdp_node; /* node on sysdc_psets list */ struct cpupart *sdp_cpupart; /* associated cpu partition */ size_t sdp_nthreads; /* reference count */ /* The remainder is only touched by sysdc_update() */ hrtime_t sdp_onproc_time; /* time onproc at last update */ boolean_t sdp_need_break; /* threads forced to minpri */ uint_t sdp_should_break; /* # updates need_break is set */ uint_t sdp_dont_break; /* after break, # updates until next */ /* debugging fields */ uint_t sdp_onproc_threads; hrtime_t sdp_vtime_last_interval; uint_t sdp_DC_last_interval; } sysdc_pset_t; /* * Per-thread information, pointed to by t_cldata. */ typedef struct sysdc { uint_t sdc_target_DC; /* target duty cycle */ pri_t sdc_minpri; /* our minimum priority */ pri_t sdc_maxpri; /* our maximum priority */ sysdc_pset_t *sdc_pset; /* the processor set bound to */ kmutex_t sdc_thread_lock; /* protects sdc_thread */ struct _kthread *sdc_thread; /* back-pointer, or NULL if freeable */ /* Owned by sysdc_update(), only -> NULL with sdc_thread_lock held */ struct sysdc *sdc_next; /* next in hash table, NULL if not in */ /* protected by thread_lock() */ uint_t sdc_nupdates; /* number of sysdc_update_times() */ uint_t sdc_sleep_updates; /* nupdates when we slept */ hrtime_t sdc_base_O; /* on-cpu time at last reset */ hrtime_t sdc_base_R; /* runnable time at last reset */ klwp_t *sdc_lwp; /* convenience pointer to LWP */ uint64_t sdc_timer; /* quantum timer */ clock_t sdc_pri_check; /* lbolt when we checked our priority */ hrtime_t sdc_last_base_O; /* onproc time at sysdc_update() */ uint_t sdc_asleep; /* currently asleep? */ pri_t sdc_pri; /* our last computed priority */ pri_t sdc_epri; /* our actual thread priority */ /* for debugging only */ clock_t sdc_reset; /* lbolt when we reset our bases */ hrtime_t sdc_cur_O; /* on-cpu time at last prio check */ hrtime_t sdc_cur_R; /* runnable time at last prio check */ hrtime_t sdc_last_O; /* onproc time at thread update */ uint_t sdc_cur_DC; /* our actual duty cycle at last chk */ } sysdc_t; /* * Hash bucket of active SDC threads. */ typedef struct sysdc_list { sysdc_t *volatile sdl_list; /* list of active threads in bucket */ char sdl_pad[64 - sizeof (sysdc_t *)]; } sysdc_list_t; /* * Args to CL_ENTERCLASS(). */ typedef struct sysdc_params { uint_t sdp_minpri; uint_t sdp_maxpri; uint_t sdp_DC; } sysdc_params_t; /* * Duty cycles are percentages in the range [1,100]. */ #define SYSDC_DC_MAX 100u /* 1 <= DC <= DC_MAX */ #ifdef __cplusplus } #endif #endif /* _SYS_SYSDC_IMPL_H */