Go to the source code of this file.
Defines | |
#define | INVALID_COOKIE ~0LLU |
#define | NO_COOKIE 0LLU |
#define | DCOOKIE_SHIFT 7 |
Typedefs | |
typedef unsigned long long | cookie_t |
Functions | |
char const * | find_cookie (cookie_t cookie) |
int | is_cookie_ignored (cookie_t cookie) |
char const * | verbose_cookie (cookie_t cookie) |
void | cookie_init (void) |
cookie -> name cache
Definition in file opd_cookie.h.
#define DCOOKIE_SHIFT 7 |
Shift value to remove trailing zero on a dcookie value, 7 is sufficient for most architecture
Definition at line 23 of file opd_cookie.h.
Referenced by hash_anon(), hash_cookie(), and sfile_hash().
#define INVALID_COOKIE ~0LLU |
Definition at line 16 of file opd_cookie.h.
Referenced by create_sfile(), find_cookie(), is_cookie_ignored(), opd_process_samples(), opd_put_ibs_sample(), trans_ibs_op_bta(), trans_ibs_op_ls_memaccess(), and verbose_cookie().
#define NO_COOKIE 0LLU |
Definition at line 17 of file opd_cookie.h.
Referenced by create_sfile(), find_cookie(), is_cookie_ignored(), opd_put_ibs_sample(), opd_put_sample(), sfile_find(), sfile_hash(), trans_ibs_op_bta(), trans_ibs_op_ls_memaccess(), and verbose_cookie().
typedef unsigned long long cookie_t |
Definition at line 14 of file opd_cookie.h.
void cookie_init | ( | void | ) |
Definition at line 204 of file opd_cookie.c.
References HASH_SIZE, hashes, and list_init().
Referenced by opd_26_init().
char const* find_cookie | ( | cookie_t | cookie | ) |
Return the name of the given dcookie. May return NULL on failure.
Definition at line 134 of file opd_cookie.c.
References create_cookie(), hash_cookie(), hashes, INVALID_COOKIE, cookie_entry::list, list_add(), list_entry, list_for_each, cookie_entry::name, NO_COOKIE, and cookie_entry::value.
Referenced by code_ctx_switch(), code_spu_ctx_switch(), get_dep_name(), mangle_filename(), and opd_open_sample_file().
int is_cookie_ignored | ( | cookie_t | cookie | ) |
return true if this cookie should be ignored
Definition at line 157 of file opd_cookie.c.
References create_cookie(), hash_cookie(), hashes, cookie_entry::ignored, INVALID_COOKIE, cookie_entry::list, list_add(), list_entry, list_for_each, NO_COOKIE, and cookie_entry::value.
Referenced by is_sf_ignored().
char const* verbose_cookie | ( | cookie_t | cookie | ) |
give a textual description of the cookie
Definition at line 179 of file opd_cookie.c.
References hash_cookie(), hashes, INVALID_COOKIE, cookie_entry::list, list_entry, list_for_each, cookie_entry::name, NO_COOKIE, and cookie_entry::value.
Referenced by add_anon_mapping(), clear_anon_maps(), code_cookie_switch(), sfile_find(), and verbose_print_sample().