opd_cookie.h File Reference

This graph shows which files directly or indirectly include this file:

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)

Detailed Description

cookie -> name cache

Remarks:
Copyright 2002, 2005 OProfile authors
Read the file COPYING
Author:
John Levon

Definition in file opd_cookie.h.


Define Documentation

#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
#define NO_COOKIE   0LLU

Typedef Documentation

typedef unsigned long long cookie_t

Definition at line 14 of file opd_cookie.h.


Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1