File Index
Files and directories
Sign in
FILE

coresight-self-hosted-trace.h

File preview with syntax highlighting.

linux-6.19.14/drivers/hwtracing/coresight/coresight-self-hosted-trace.h C
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Arm v8 Self-Hosted trace support.
 4 *
 5 * Copyright (C) 2021 ARM Ltd.
 6 */
 7
 8#ifndef __CORESIGHT_SELF_HOSTED_TRACE_H
 9#define __CORESIGHT_SELF_HOSTED_TRACE_H
10
11#include <asm/sysreg.h>
12
13static inline u64 read_trfcr(void)
14{
15	return read_sysreg_s(SYS_TRFCR_EL1);
16}
17
18static inline void write_trfcr(u64 val)
19{
20	write_sysreg_s(val, SYS_TRFCR_EL1);
21	isb();
22}
23
24#endif /*  __CORESIGHT_SELF_HOSTED_TRACE_H */
~/ Read-only file preview.