opd_sample_files.h File Reference

#include "op_list.h"
#include "odb.h"
Include dependency graph for opd_sample_files.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  opd_24_sfile

Functions

void opd_sync_samples_files (void)
void opd_close_image_samples_files (struct opd_image *image)
int opd_open_24_sample_file (struct opd_image *image, int counter, int cpu_nr)
void opd_24_sfile_lru (struct opd_24_sfile *sfile)

Detailed Description

Management of sample files

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

Definition in file opd_sample_files.h.


Function Documentation

void opd_24_sfile_lru ( struct opd_24_sfile sfile  ) 
Parameters:
sfile sample file to act on

put sfile at the head of samples files lru list

Definition at line 60 of file opd_sample_files.c.

References list_add_tail(), list_del(), and opd_24_sfile::lru_next.

Referenced by opd_put_image_sample().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_close_image_samples_files ( struct opd_image image  ) 
Parameters:
image the image pointer to work on

close all samples files belonging to this image

Definition at line 166 of file opd_sample_files.c.

References list_del(), opd_24_sfile::lru_next, NR_CPUS, odb_close(), op_nr_counters, opd_24_sfile::sample_file, and opd_image::sfiles.

Referenced by opd_delete_image(), and opd_sighup().

Here is the call graph for this function:

Here is the caller graph for this function:

int opd_open_24_sample_file ( struct opd_image image,
int  counter,
int  cpu_nr 
)

opd_open_24_sample_file - open an image sample file

Parameters:
image image to open file for
counter counter number
cpu_nr cpu number

Open image sample file for the image, counter counter and set up memory mappings for it. image->kernel and image->name must have meaningful values.

Returns 0 on success.

Definition at line 103 of file opd_sample_files.c.

References create_path(), fill_header(), opd_image::kernel, list_add_tail(), list_del(), list_init(), opd_24_sfile::lru_next, opd_image::mtime, odb_get_data(), odb_init(), odb_open(), ODB_RDWR, opd_24_sfile_lru_clear(), opd_mangle_filename(), opd_24_sfile::sample_file, opd_image::sfiles, verbprintf, and vsfile.

Referenced by opd_put_image_sample().

Here is the call graph for this function:

Here is the caller graph for this function:

void opd_sync_samples_files ( void   ) 

sync all samples files

Definition at line 154 of file opd_sample_files.c.

References list_entry, list_for_each, opd_24_sfile::lru_next, odb_sync(), and opd_24_sfile::sample_file.

Referenced by opd_alarm().

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