opimport.cpp File Reference

#include "abi.h"
#include "odb.h"
#include "popt_options.h"
#include "op_sample_file.h"
#include <fstream>
#include <iostream>
#include <vector>
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
Include dependency graph for opimport.cpp:

Go to the source code of this file.

Data Structures

struct  extractor

Functions

void import_from_abi (abi const &abi, void const *srcv, size_t len, odb_t *dest) throw (abi_exception)
int main (int argc, char const **argv)

Variables

popt::option options_array []

Detailed Description

Import sample files from other ABI

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
Graydon Hoare

Definition in file opimport.cpp.


Function Documentation

void import_from_abi ( abi const &  abi,
void const *  srcv,
size_t  len,
odb_t dest 
) throw (abi_exception)
int main ( int  argc,
char const **  argv 
)

Definition at line 168 of file opimport.cpp.

References abi_exception::desc, import_from_abi(), odb_close(), odb_open(), ODB_RDWR, and popt::parse_options().

Here is the call graph for this function:


Variable Documentation

Initial value:
 {
    popt::option(verbose, "verbose", 'V', "verbose output"),
    popt::option(output_filename, "output", 'o', "output to file", "filename"),
    popt::option(abi_filename, "abi", 'a', "abi description", "filename"),
    popt::option(force, "force", 'f', "force conversion, even if identical")
}

Definition at line 41 of file opimport.cpp.


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1