2013-09-26 17:03:33 +02:00
|
|
|
/*
|
|
|
|
* \brief Performance counter specific functions
|
|
|
|
* \author Josef Soentgen
|
|
|
|
* \date 2013-09-26
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
2014-07-09 12:03:17 +02:00
|
|
|
#ifndef _KERNEL__PERF_COUNTER_H_
|
|
|
|
#define _KERNEL__PERF_COUNTER_H_
|
|
|
|
|
|
|
|
namespace Kernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Performance counter
|
|
|
|
*/
|
2013-09-26 17:03:33 +02:00
|
|
|
class Perf_counter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2014-07-09 12:03:17 +02:00
|
|
|
/**
|
|
|
|
* Enable counting
|
|
|
|
*/
|
2013-09-26 17:03:33 +02:00
|
|
|
void enable();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-07-09 12:03:17 +02:00
|
|
|
extern Perf_counter * perf_counter();
|
2013-09-26 17:03:33 +02:00
|
|
|
}
|
|
|
|
|
2014-07-09 12:03:17 +02:00
|
|
|
#endif /* _KERNEL__PERF_COUNTER_H_ */
|