1
0
Files
irix-657m-src/eoe/cmd/topwait/func.h
2022-09-29 17:59:04 +03:00

21 lines
375 B
C

#ifndef _FUNC_H_
#define _FUNC_H_
#include "htab.h"
typedef struct func_state_s {
hashable fs_hash;
uint64_t fs_addr;
uint64_t fs_self_hits;
uint64_t fs_child_hits;
} func_state;
#define N_FUNC_BUCKETS 1021
#define HASH_FUNC(addr) (addr)
#define HASHABLE_TO_FS(hptr) baseof(func_state, fs_hash, hptr)
#define FS_TO_HASHABLE(fs) &(fs)->fs_hash
#endif /* _FUNC_H_ */