MOS Source Code
Loading...
Searching...
No Matches
profiling.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: GPL-3.0-only
2
3
#pragma once
4
5
#include <
mos/mos_global.h
>
6
#include <
mos/types.h
>
7
8
typedef
u64
pf_point_t
;
9
10
#if MOS_CONFIG(MOS_PROFILING)
11
#include "
mos/platform/platform.h
"
12
19
should_inline
pf_point_t
profile_enter
(
void
)
20
{
21
return
platform_get_timestamp
();
22
}
23
29
void
profile_leave
(
pf_point_t
point,
const
char
*
fmt
, ...)
__printf
(2, 3);
30
31
#else
32
33
#define profile_enter() 0
34
35
#define profile_leave(p, ...) ((void) p)
36
37
#endif
fmt
u32 const char * fmt
Definition
assert.h:36
mos_global.h
should_inline
#define should_inline
Definition
mos_global.h:37
__printf
#define __printf(a, b)
Definition
mos_global.h:30
platform.h
profile_enter
#define profile_enter()
Definition
profiling.h:33
pf_point_t
u64 pf_point_t
Definition
profiling.h:8
profile_leave
#define profile_leave(p,...)
Definition
profiling.h:35
types.h
u64
unsigned long long u64
Definition
types.h:23
platform_get_timestamp
u64 platform_get_timestamp()
Definition
x86_platform_api.c:61
kernel
include
private
mos
misc
profiling.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0