/usr/lib/tau/include/Profile/TauKtau.h is in tau 2.17.3.1.dfsg-4.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | /****************************************************************************
** TAU Portable Profiling Package **
** http://www.acl.lanl.gov/tau **
*****************************************************************************
** Copyright 1997 **
** Department of Computer and Information Science, University of Oregon **
** Advanced Computing Laboratory, Los Alamos National Laboratory **
****************************************************************************/
/***************************************************************************
** File : TauKtau.h **
** Description : TAU Kernel Profiling Interface **
** Author : Suravee Suthikulpanit **
** : Aroon Nataraj **
** Contact : suravee@cs.uoregon.edu **
** : anataraj@cs.uoregon.edu **
** Flags : Compile with **
** -DTAU_KTAU to enable KTAU **
** Documentation : **
***************************************************************************/
#ifndef _TAUKTAU_H_
#define _TAUKTAU_H_
#include <ktau_proc_interface.h>
#include <Profile/KtauSymbols.h>
#include <Profile/ProfileGroups.h> //for enum TauFork_t
#define NAME_SIZE 100
#define MAP_SIZE 10 * 1024
/////////////////////////////////////////////////////////////////////
//
// class TauKtau
//
//////////////////////////////////////////////////////////////////////
typedef struct _ktau_output_info{
pid_t pid;
unsigned int templ_fun_counter;
unsigned int user_ev_counter;
}ktau_output_info;
class TauKtau
{
public:
char *startBuf;
char *stopBuf;
long startSize;
long stopSize;
long outSize;
ktau_output *diffOutput;
char *startBufTWO;
char *stopBufTWO;
long startSizeTWO;
long stopSizeTWO;
long outSizeTWO;
ktau_output *diffOutputTWO;
// Constructor
TauKtau(KtauSymbols& sym);
// Destructor
~TauKtau();
// APIs
int StartKProfile();
int StopKProfile();
int DumpKProfile();
int DumpKProfileOut();
int StopKProfileTWO();
int DumpKProfileTWO(int, ktau_output*, char*);
int MergingKProfileFunc(FILE * fp);
int MergingKProfileEvent(FILE * fp);
int GetNumKProfileFunc();
int GetNumKProfileEvent();
int AggrKProfiles(char* start, int startSz, char* stop, int stopSz, ktau_output** aggrprofs);
static int RegisterFork(TauKtau* pKernProf, enum TauFork_t opcode);
private:
ktau_output_info ThisKtauOutputInfo;
int GetKProfileInfo();
int ReadKallsyms();
int DiffKProfile();
int DiffKProfileTWO(char* startB, char* stopB, int startSz, int stopSz, ktau_output** pdiffOut);
KtauSymbols& KtauSym;
};
#endif /* _TAUKTAU_H_*/
/***************************************************************************
* $RCSfile: TauKtau.h,v $ $Author: anataraj $
* $Revision: 1.3 $ $Date: 2007/04/19 03:21:44 $
* POOMA_VERSION_ID: $Id: TauKtau.h,v 1.3 2007/04/19 03:21:44 anataraj Exp $
***************************************************************************/
|