mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-06-21 09:12:26 +02:00
trace_point: fix: move header file to events
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
This commit is contained in:
@@ -64,11 +64,11 @@ EXTRA_CFLAGS += $(DEBFLAGS)
|
||||
# EXTRA_CFLAGS += -DDYNAMIC_MALLOC_VCMDNODE
|
||||
|
||||
#adapt for andriod $src is where this dir.
|
||||
ifeq ($(CONFIG_ANDROID), y)
|
||||
ccflags-y += -DTRACE_INCLUDE_PATH=$(src)
|
||||
else
|
||||
ccflags-y += -DTRACE_INCLUDE_PATH=$(PWD)
|
||||
endif
|
||||
#ifeq ($(CONFIG_ANDROID), y)
|
||||
#ccflags-y += -DTRACE_INCLUDE_PATH=$(src)
|
||||
#else
|
||||
#ccflags-y += -DTRACE_INCLUDE_PATH=$(PWD)
|
||||
#endif
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
# recursive call from kernel build system
|
||||
|
||||
|
||||
@@ -109,11 +109,11 @@ endif
|
||||
CC += -I$(obj)
|
||||
EXTRA_CFLAGS += -g
|
||||
|
||||
ifeq ($(CONFIG_ANDROID), y)
|
||||
ccflags-y += -DTRACE_INCLUDE_PATH=$(src)
|
||||
else
|
||||
ccflags-y += -DTRACE_INCLUDE_PATH=$(PWD)
|
||||
endif
|
||||
#ifeq ($(CONFIG_ANDROID), y)
|
||||
#ccflags-y += -DTRACE_INCLUDE_PATH=$(src)
|
||||
#else
|
||||
#ccflags-y += -DTRACE_INCLUDE_PATH=$(PWD)
|
||||
#endif
|
||||
|
||||
# Print debugging messages from the device
|
||||
#EXTRA_CFLAGS += -DHANTRO_DRIVER_DEBUG
|
||||
|
||||
34
include/trace/events/gpu_trace_point.h
Normal file
34
include/trace/events/gpu_trace_point.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM gpu_trace_point
|
||||
|
||||
#if !defined(_TRACE_GPU_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_GPU_H
|
||||
|
||||
#include <linux/sched/numa_balancing.h>
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/binfmts.h>
|
||||
|
||||
TRACE_EVENT(gpu_interrupt,
|
||||
|
||||
TP_PROTO(unsigned int IRQStatusReg, unsigned int IRQStatus),
|
||||
|
||||
TP_ARGS(IRQStatusReg, IRQStatus),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, IRQStatusReg)
|
||||
__field( unsigned int, IRQStatus)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->IRQStatusReg = IRQStatusReg;
|
||||
__entry->IRQStatus = IRQStatus;
|
||||
),
|
||||
|
||||
TP_printk("IRQStatusReg=%d IRQStatus=%d", __entry->IRQStatusReg, __entry->IRQStatus)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_GPU_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
36
include/trace/events/vdec_trace_point.h
Normal file
36
include/trace/events/vdec_trace_point.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM vdec_trace_point
|
||||
|
||||
#if !defined(_TRACE_VDEC_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_VDEC_H
|
||||
|
||||
#include <linux/sched/numa_balancing.h>
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/binfmts.h>
|
||||
|
||||
TRACE_EVENT(vdec_interrupt,
|
||||
|
||||
TP_PROTO(unsigned int complete_cmd, unsigned int irq_status, unsigned int processed_vcmd_num),
|
||||
|
||||
TP_ARGS(complete_cmd, irq_status,processed_vcmd_num),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, complete_cmd )
|
||||
__field( unsigned int, irq_status)
|
||||
__field( unsigned int, processed_vcmd_num)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->complete_cmd = complete_cmd;
|
||||
__entry->irq_status = irq_status;
|
||||
__entry->processed_vcmd_num = processed_vcmd_num;
|
||||
),
|
||||
|
||||
TP_printk("dec irq type complete_cmd %u irq status =%x processed_vcmd_num %d ", __entry->complete_cmd, __entry->irq_status,__entry->processed_vcmd_num)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_VDEC_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
36
include/trace/events/venc_trace_point.h
Normal file
36
include/trace/events/venc_trace_point.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM venc_trace_point
|
||||
|
||||
#if !defined(_TRACE_VENC_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_VENC_H
|
||||
|
||||
#include <linux/sched/numa_balancing.h>
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/binfmts.h>
|
||||
|
||||
TRACE_EVENT(venc_interrupt,
|
||||
|
||||
TP_PROTO(unsigned int complete_cmd, unsigned int irq_status, unsigned int processed_vcmd_num),
|
||||
|
||||
TP_ARGS(complete_cmd, irq_status,processed_vcmd_num),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, complete_cmd )
|
||||
__field( unsigned int, irq_status)
|
||||
__field( unsigned int, processed_vcmd_num)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->complete_cmd = complete_cmd;
|
||||
__entry->irq_status = irq_status;
|
||||
__entry->processed_vcmd_num = processed_vcmd_num;
|
||||
),
|
||||
|
||||
TP_printk("venc irq type complete_cmd %u irq status =%x processed_vcmd_num %d ", __entry->complete_cmd, __entry->irq_status,__entry->processed_vcmd_num)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_VENC_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
97
include/trace/events/vha_trace_point.h
Normal file
97
include/trace/events/vha_trace_point.h
Normal file
@@ -0,0 +1,97 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/* vha message transfer tracepoints
|
||||
*
|
||||
* Copyright (C) 2013 Red Hat, Inc. All Rights Reserved.
|
||||
* Written by David Howells (dhowells@redhat.com)
|
||||
*/
|
||||
#undef TRACE_SYSTEM
|
||||
#define TRACE_SYSTEM vha_trace_point
|
||||
|
||||
#if !defined(_TRACE_VHA_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_VHA_H
|
||||
|
||||
#include <linux/sched/numa_balancing.h>
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/binfmts.h>
|
||||
|
||||
TRACE_EVENT(vha_session_in,
|
||||
TP_PROTO(uint32_t session_id, uint64_t kicks),
|
||||
|
||||
TP_ARGS(session_id, kicks),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( uint32_t, session_id)
|
||||
__field( uint64_t, kicks)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->session_id = session_id;
|
||||
__entry->kicks = kicks;
|
||||
),
|
||||
|
||||
TP_printk("session_id %d, kicks=%d", __entry->session_id, __entry->kicks)
|
||||
);
|
||||
|
||||
TRACE_EVENT(vha_session_out,
|
||||
TP_PROTO(uint32_t session_id, uint64_t kicks),
|
||||
|
||||
TP_ARGS(session_id, kicks),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( uint32_t, session_id)
|
||||
__field( uint64_t, kicks)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->session_id = session_id;
|
||||
__entry->kicks = kicks;
|
||||
),
|
||||
|
||||
TP_printk("session_id %d, kicks=%d", __entry->session_id, __entry->kicks)
|
||||
);
|
||||
|
||||
TRACE_EVENT(vha_hwexec_in,
|
||||
TP_PROTO(uint32_t session_id, uint32_t subseg_current),
|
||||
|
||||
TP_ARGS(session_id, subseg_current),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( uint32_t, session_id)
|
||||
__field( uint32_t, subseg_current)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->session_id = session_id;
|
||||
__entry->subseg_current = subseg_current;
|
||||
),
|
||||
|
||||
TP_printk("session_id %d, subseg_current=%d", __entry->session_id, __entry->subseg_current)
|
||||
);
|
||||
|
||||
TRACE_EVENT(vha_irq,
|
||||
TP_PROTO(unsigned int dev_id, uint64_t status, uint8_t count, uint64_t last_proc_us),
|
||||
|
||||
TP_ARGS(dev_id, status, count, last_proc_us),
|
||||
|
||||
TP_STRUCT__entry(
|
||||
__field( unsigned int, dev_id)
|
||||
__field( uint64_t, status)
|
||||
__field( uint8_t, count)
|
||||
__field( uint64_t, last_proc_us)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->dev_id = dev_id;
|
||||
__entry->status = status;
|
||||
__entry->count = count;
|
||||
__entry->last_proc_us = last_proc_us;
|
||||
),
|
||||
|
||||
TP_printk("dev_id=%d, status=%lld, count=%d, last_proc_us=%lld",
|
||||
__entry->dev_id, __entry->status, __entry->count, __entry->last_proc_us)
|
||||
);
|
||||
|
||||
#endif /* _TRACE_VHA_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
Reference in New Issue
Block a user