opd_cookie.c File Reference

cookie -> name cache More...

#include "opd_cookie.h"
#include "oprofiled.h"
#include "op_list.h"
#include "op_libiberty.h"
#include <sys/syscall.h>
#include <unistd.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
Include dependency graph for opd_cookie.c:

Classes

struct  cookie_entry

Defines

#define HASH_SIZE   512
#define HASH_BITS   (HASH_SIZE - 1)

Functions

char const * find_cookie (cookie_t cookie)
 Return the name of the given dcookie.
int is_cookie_ignored (cookie_t cookie)
 return true if this cookie should be ignored
char const * verbose_cookie (cookie_t cookie)
 give a textual description of the cookie
void cookie_init (void)

Detailed Description

cookie -> name cache

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

Define Documentation

#define HASH_BITS   (HASH_SIZE - 1)
#define HASH_SIZE   512

Function Documentation

void cookie_init ( void   ) 

References HASH_SIZE.

char const* find_cookie ( cookie_t  cookie  ) 

Return the name of the given dcookie.

May return NULL on failure.

References INVALID_COOKIE, cookie_entry::list, list_entry, list_for_each, cookie_entry::name, NO_COOKIE, and cookie_entry::value.

Referenced by code_spu_ctx_switch(), and opd_open_sample_file().

int is_cookie_ignored ( cookie_t  cookie  ) 

return true if this cookie should be ignored

References cookie_entry::ignored, INVALID_COOKIE, cookie_entry::list, list_entry, list_for_each, NO_COOKIE, and cookie_entry::value.

char const* verbose_cookie ( cookie_t  cookie  ) 

give a textual description of the cookie

References INVALID_COOKIE, cookie_entry::list, list_entry, list_for_each, cookie_entry::name, NO_COOKIE, and cookie_entry::value.

Referenced by sfile_find().


Generated on 29 Jul 2013 for oprofile by  doxygen 1.6.1