op_get_interface.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "op_cpu_type.h"
#include "op_file.h"
Include dependency graph for op_get_interface.c:

Go to the source code of this file.

Functions

op_interface op_get_interface (void)

Detailed Description

Determine which oprofile kernel interface used

Remarks:
Copyright 2002 OProfile authors
Read the file COPYING
Author:
Will Cohen

Definition in file op_get_interface.c.


Function Documentation

op_interface op_get_interface ( void   ) 

get the INTERFACE used to communicate between daemon and the kernel

returns OP_INTERFACE_NO_GOOD if the INTERFACE could not be identified. This function will identify the interface as OP_INTERFACE_NO_GOOD if the module is not loaded.

Definition at line 18 of file op_get_interface.c.

References op_file_readable(), OP_INTERFACE_24, OP_INTERFACE_26, and OP_INTERFACE_NO_GOOD.

Referenced by daemon_status::daemon_status(), get_ops(), oprof_start::oprof_start(), and oprof_start::save_config().

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