Removed the BeOS specific perfmon_kernel.h header - Haiku's kernel doesn't
export those functions. The log_coll stuff now uses system_time() instead if enabled - that should be good enough. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17567 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,36 +0,0 @@
|
|||||||
/* ++++++++++
|
|
||||||
File: perfmon_kernel.h
|
|
||||||
Description: kernel mode interface to performance counters and time stamp
|
|
||||||
registers of 586 and 686 CPUs
|
|
||||||
|
|
||||||
DO NOT use these functions in the production code !!!
|
|
||||||
This interface WILL BE CHANGED in the next releases.
|
|
||||||
|
|
||||||
Copyright (c) 1998 by Be Incorporated. All Rights Reserved.
|
|
||||||
+++++ */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _PERFMON_KERNEL_H
|
|
||||||
#define _PERFMON_KERNEL_H
|
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __INTEL__
|
|
||||||
|
|
||||||
extern _IMPEXP_KERNEL uint64 read_msr(uint32 msr);
|
|
||||||
extern _IMPEXP_KERNEL void write_msr(uint32 msr, uint64 val);
|
|
||||||
extern _IMPEXP_KERNEL uint64 read_pmc(uint32 pmc);
|
|
||||||
extern _IMPEXP_KERNEL uint64 read_tsc(void);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -1,21 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (c) 2002, Thomas Kurschel
|
Copyright (c) 2002, Thomas Kurschel
|
||||||
|
|
||||||
|
|
||||||
Part of Radeon driver
|
Part of Radeon driver
|
||||||
|
|
||||||
Both kernel and user space part.
|
Both kernel and user space part.
|
||||||
(init and clean-up must be done in
|
(init and clean-up must be done in
|
||||||
kernel space).
|
kernel space).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "log_coll.h"
|
||||||
|
|
||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
|
#include <OS.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <perfmon_kernel.h>
|
|
||||||
#include "log_coll.h"
|
|
||||||
#include <OS.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
typedef struct log_info_t {
|
typedef struct log_info_t {
|
||||||
@@ -47,7 +47,7 @@ void log( log_info *li, uint16 what, const uint8 num_args, ... )
|
|||||||
|
|
||||||
entry = (log_entry *)&li->log_buffer[pos];
|
entry = (log_entry *)&li->log_buffer[pos];
|
||||||
|
|
||||||
entry->tsc = read_tsc();
|
entry->tsc = system_time();
|
||||||
entry->what = what;
|
entry->what = what;
|
||||||
entry->num_args = num_args;
|
entry->num_args = num_args;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user