2022-06-27 19:36:56 +02:00
|
|
|
/*
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
UMKa - User-Mode KolibriOS developer tools
|
|
|
|
|
|
|
|
Copyright (C) 2019-2020 Ivan Baravy <dunkaist@gmail.com>
|
|
|
|
*/
|
|
|
|
|
2019-10-09 01:35:47 +02:00
|
|
|
#ifndef TRACE_H_INCLUDED
|
|
|
|
#define TRACE_H_INCLUDED
|
|
|
|
|
2020-03-11 04:02:33 +01:00
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
extern uint32_t coverage;
|
|
|
|
|
2020-03-09 22:03:57 +01:00
|
|
|
#define COVERAGE_ON() do { trace_resume(coverage); } while (0)
|
|
|
|
|
|
|
|
#define COVERAGE_OFF() do { coverage = trace_pause(); } while (0)
|
|
|
|
|
2019-10-09 01:35:47 +02:00
|
|
|
void trace_begin(void);
|
|
|
|
void trace_end(void);
|
2020-03-09 22:03:57 +01:00
|
|
|
uint32_t trace_pause(void);
|
|
|
|
void trace_resume(uint32_t value);
|
2019-10-09 01:35:47 +02:00
|
|
|
|
|
|
|
#endif
|