db_travel.c File Reference

#include "odb.h"
Include dependency graph for db_travel.c:

Go to the source code of this file.

Functions

odb_node_todb_get_iterator (odb_t const *odb, odb_node_nr_t *nr)

Detailed Description

Inspection of a DB

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
Philippe Elie

Definition in file db_travel.c.


Function Documentation

odb_node_t* odb_get_iterator ( odb_t const *  odb,
odb_node_nr_t nr 
)

return a base pointer to the node array and number of node in this array caller then will iterate through:

odb_node_nr_t node_nr, pos; odb_node_t * node = odb_get_iterator(odb, &node_nr); for ( pos = 0 ; pos < node_nr ; ++pos) // do something

note than caller does not need to filter nil key as it's a valid key, The returned range is all valid (i.e. should never contain zero value).

Definition at line 13 of file db_travel.c.

References odb_descr_t::current_size, odb_t::data, odb_data::descr, and odb_data::node_base.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1