$Revision: 1.2 $
thread accounting (ta). ta.c - functions to keep track of activities of threads within the server
Status: NOT REVUED, TESTED, COMPLETE
Design and implementation by: Marek Bukowy
#define TA_HEADER "%-8s %15s %4s %4s %5s %5s %4s %5s %s\n"
#define TA_FORMAT "%-8s %15s %4d %4d %5.1f %5.1f %4d %5.2f %s\n"
Included from | include/ta.h | |
Visible in: | modules/ta/ta.c | |
Used in: | TA_add() | modules/ta/ta.c |
TA_delete() | modules/ta/ta.c | |
TA_increment() | modules/ta/ta.c | |
TA_setactivity() | modules/ta/ta.c | |
TA_tostring() | modules/ta/ta.c |
Included from | include/ta.h | |
Visible in: | modules/ta/ta.c | |
Used in: | TA_add() | modules/ta/ta.c |
TA_delete() | modules/ta/ta.c | |
TA_increment() | modules/ta/ta.c | |
TA_setactivity() | modules/ta/ta.c | |
TA_tostring() | modules/ta/ta.c |
Prototyped in: | include/ta.h | |
Calls: | ta_findcreate_l() | modules/ta/ta.c |
ta_setactivity_l() | modules/ta/ta.c | |
UT_timeget(), pthread_mutex_lock(), pthread_mutex_unlock(), pthread_self(), snprintf() | ||
Called by: | PM_interact() | modules/pm/protocol_mirror.c |
SV_do_config() | modules/sv/server.c | |
SV_do_mirror() | modules/sv/server.c | |
SV_do_whois() | modules/sv/server.c | |
References Variables: | ta_list | modules/ta/ta.c |
ta_mutex | modules/ta/ta.c |
Prototyped in: | include/ta.h | |
Calls: | ta_remove_l() | modules/ta/ta.c |
pthread_mutex_lock(), pthread_mutex_unlock(), pthread_self() | ||
Called by: | PM_interact() | modules/pm/protocol_mirror.c |
SV_do_config() | modules/sv/server.c | |
SV_do_mirror() | modules/sv/server.c | |
SV_do_whois() | modules/sv/server.c | |
References Variables: | ta_list | modules/ta/ta.c |
ta_mutex | modules/ta/ta.c |
Calls: | ta_findcreate_l() | modules/ta/ta.c |
UT_timeget(), pthread_mutex_lock(), pthread_mutex_unlock(), pthread_self() | ||
Called by: | PC_interact() | modules/pc/protocol_config.c |
PW_interact() | modules/pw/protocol_whois.c | |
References Variables: | ta_list | modules/ta/ta.c |
ta_mutex | modules/ta/ta.c |
Prototyped in: | include/ta.h | |
Calls: | ta_findcreate_l() | modules/ta/ta.c |
ta_setactivity_l() | modules/ta/ta.c | |
pthread_mutex_lock(), pthread_mutex_unlock(), pthread_self() | ||
Called by: | PC_interact() | modules/pc/protocol_config.c |
PM_interact() | modules/pm/protocol_mirror.c | |
PW_interact() | modules/pw/protocol_whois.c | |
References Variables: | ta_list | modules/ta/ta.c |
ta_mutex | modules/ta/ta.c |
Prototyped in: | include/ta.h | |
Calls: | NOERR() | modules/er/er.c |
ta_print_header() | modules/ta/ta.c | |
ta_printone_l() | modules/ta/ta.c | |
UT_timeget(), fprintf(), g_list_first(), pthread_mutex_lock(), pthread_mutex_unlock(), strcat(), strlen(), wr_real_realloc() | ||
Called by: | show_threads() | modules/pc/protocol_config.c |
References Variables: | ta_list | modules/ta/ta.c |
ta_mutex | modules/ta/ta.c |
Calls: | NOERR() | modules/er/er.c |
fprintf(), g_list_append(), g_list_first(), wr_real_calloc() | ||
Called by: | TA_add() | modules/ta/ta.c |
TA_increment() | modules/ta/ta.c | |
TA_setactivity() | modules/ta/ta.c |
Calls: | snprintf() | |
Called by: | TA_tostring() | modules/ta/ta.c |
Calls: | SK_getpeername() | modules/sk/sk_socket.c |
UT_timediff(), snprintf(), wr_real_free() | ||
Called by: | TA_tostring() | modules/ta/ta.c |
Calls: | g_list_first(), g_list_remove_link(), wr_real_clear_list() | |
Called by: | TA_delete() | modules/ta/ta.c |
Calls: | strncpy(), strrchr() | |
Called by: | TA_add() | modules/ta/ta.c |
TA_setactivity() | modules/ta/ta.c |