#include <string.h>
#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
Enumerations | |
enum | state_t { STATE_FREE = 0, STATE_INIT, STATE_OK } |
Functions | |
const char * | gen_name (const char *mask, int id) |
Generate a name in allocated memory. | |
int | cmp_tid (const void *a_, const void *b_) |
Sort-helper for thread-id sorting. | |
int | cmp_tid_back (const void *a_, const void *b_) |
Sort-helper for reverse thread-id sorting. | |
int | cmp_name (const void *a_, const void *b_) |
Sort-helper for name sorting. | |
int | cmp_name_back (const void *a_, const void *b_) |
Sort-helper for reverse name sorting. | |
int | cmp_prio (const void *a_, const void *b_) |
Sort-helper for prio sorting. | |
int | cmp_prio_back (const void *a_, const void *b_) |
Sort-helper for reverse prio sorting. | |
int | cmp_load (const void *a_, const void *b_) |
Sort-helper for load sorting. | |
int | cmp_load_back (const void *a_, const void *b_) |
Sort-helper for reverse load sorting. | |
int | cmp_time (const void *a_, const void *b_) |
Sort-helper for time sorting. | |
int | cmp_time_back (const void *a_, const void *b_) |
Sort-helper for reverse time sorting. |
const char * gen_name | ( | const char * | mask, | |
int | id | |||
) | [inline] |
Generate a name in allocated memory.
The name has the form "maskXXX" with XXX replaced by the id, 0-filled.
0 | Error | |
!0 | ptr to the name, allocated with malloc |
Referenced by disp_alloc(), and scope_alloc().