opd_events.c File Reference

#include "config.h"
#include "opd_events.h"
#include "opd_printf.h"
#include "opd_extended.h"
#include "oprofiled.h"
#include "op_string.h"
#include "op_config.h"
#include "op_cpufreq.h"
#include "op_cpu_type.h"
#include "op_libiberty.h"
#include "op_hw_config.h"
#include "op_sample_file.h"
#include "op_events.h"
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for opd_events.c:

Go to the source code of this file.

Functions

static void malformed_events (void)
static char * copy_token (char **c, char delim)
static unsigned long copy_ulong (char **c, char delim)
void opd_parse_events (char const *events)
struct opd_eventfind_counter_event (unsigned long counter)
void fill_header (struct opd_header *header, unsigned long counter, vma_t anon_start, vma_t cg_to_anon_start, int is_kernel, int cg_to_is_kernel, int spu_samples, uint64_t embed_offset, time_t mtime)

Variables

op_cpu cpu_type
struct opd_event opd_events [OP_MAX_COUNTERS]
static double cpu_speed

Detailed Description

Event details for each counter

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

Definition in file opd_events.c.


Function Documentation

static char* copy_token ( char **  c,
char  delim 
) [static]

Definition at line 45 of file opd_events.c.

References op_xstrndup().

Referenced by copy_ulong(), and opd_parse_events().

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned long copy_ulong ( char **  c,
char  delim 
) [static]

Definition at line 68 of file opd_events.c.

References copy_token(), and malformed_events().

Referenced by opd_parse_events().

Here is the call graph for this function:

Here is the caller graph for this function:

void fill_header ( struct opd_header header,
unsigned long  counter,
vma_t  anon_start,
vma_t  anon_end,
int  is_kernel,
int  cg_to_is_kernel,
int  spu_samples,
uint64_t  embed_offset,
time_t  mtime 
)
struct opd_event* find_counter_event ( unsigned long  counter  )  [read]

Find the event for the given counter

Definition at line 130 of file opd_events.c.

References opd_event::name, op_cpu_has_timer_fs(), OP_MAX_COUNTERS, op_nr_counters, opd_events, opd_ext_find_counter_event(), and TIMER_EVENT_NAME.

Referenced by fill_header(), mangle_filename(), and opd_mangle_filename().

Here is the call graph for this function:

Here is the caller graph for this function:

static void malformed_events ( void   )  [static]

Definition at line 37 of file opd_events.c.

Referenced by copy_ulong(), and opd_parse_events().

Here is the caller graph for this function:

void opd_parse_events ( char const *  events  ) 

parse the events into the opd_events array

Definition at line 80 of file opd_events.c.

References copy_token(), copy_ulong(), cpu_speed, CPU_TIMER_INT, malformed_events(), opd_event::name, op_cpu_frequency(), op_nr_counters, opd_events, verbprintf, and vmisc.

Referenced by opd_options().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

double cpu_speed [static]

Definition at line 35 of file opd_events.c.

Referenced by fill_header(), main(), and opd_parse_events().

Definition at line 55 of file oprofiled.c.

struct opd_event opd_events[OP_MAX_COUNTERS]

Definition at line 33 of file opd_events.c.

Referenced by find_counter_event(), and opd_parse_events().


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1