]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - tools/perf/util/types.h
workqueue: make work_busy() test WORK_STRUCT_PENDING first
[mirror_ubuntu-jammy-kernel.git] / tools / perf / util / types.h
CommitLineData
8b40f521
JK
1#ifndef __PERF_TYPES_H
2#define __PERF_TYPES_H
9cffa8d5 3
9486aa38
ACM
4#include <stdint.h>
5
9cffa8d5 6/*
9486aa38
ACM
7 * We define u64 as uint64_t for every architecture
8 * so that we can print it with "%"PRIx64 without getting warnings.
9cffa8d5 9 */
9486aa38
ACM
10typedef uint64_t u64;
11typedef int64_t s64;
9cffa8d5
PM
12typedef unsigned int u32;
13typedef signed int s32;
14typedef unsigned short u16;
15typedef signed short s16;
16typedef unsigned char u8;
17typedef signed char s8;
18
6a11f92e
JO
19union u64_swap {
20 u64 val64;
21 u32 val32[2];
22};
23
8b40f521 24#endif /* __PERF_TYPES_H */