-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gpu work cts gpu_work case issue
For quick fix this issue, implement one workaround Tracked-On: OAM-125102 Signed-off-by: Wenkui <kui.wen@intel.com>
- Loading branch information
Showing
7 changed files
with
93 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* SPDX-License-Identifier: MIT */ | ||
/* | ||
* Copyright © 2024 Intel Corporation | ||
*/ | ||
|
||
#ifndef _TRACE_POWER_GPU_WORK_PERIOD_INTEL | ||
#define _TRACE_POWER_GPU_WORK_PERIOD_INTEL | ||
#endif | ||
|
||
#undef TRACE_SYSTEM | ||
#define TRACE_SYSTEM power | ||
#undef TRACE_INCLUDE_FILE | ||
#define TRACE_INCLUDE_FILE intel_power_gpu_work_period_trace | ||
#undef TRACE_INCLUDE_PATH | ||
#define TRACE_INCLUDE_PATH . | ||
|
||
#if !defined(_TRACE_POWER_GPU_WORK_PERIOD_H) || defined(TRACE_HEADER_MULTI_READ) | ||
#define _TRACE_POWER_GPU_WORK_PERIOD_H | ||
|
||
#include <linux/tracepoint.h> | ||
|
||
TRACE_EVENT(gpu_work_period, | ||
|
||
TP_PROTO( | ||
u32 gpu_id, | ||
u32 uid, | ||
u64 start_time_ns, | ||
u64 end_time_ns, | ||
u64 total_active_duration_ns | ||
), | ||
|
||
TP_ARGS(gpu_id, uid, start_time_ns, end_time_ns, total_active_duration_ns), | ||
|
||
TP_STRUCT__entry( | ||
__field(u32, gpu_id) | ||
__field(u32, uid) | ||
__field(u64, start_time_ns) | ||
__field(u64, end_time_ns) | ||
__field(u64, total_active_duration_ns) | ||
), | ||
|
||
TP_fast_assign( | ||
__entry->gpu_id = gpu_id; | ||
__entry->uid = uid; | ||
__entry->start_time_ns = start_time_ns; | ||
__entry->end_time_ns = end_time_ns; | ||
__entry->total_active_duration_ns = total_active_duration_ns; | ||
), | ||
|
||
TP_printk("gpu_id=%u uid=%u start_time_ns=%llu end_time_ns=%llu total_active_duration_ns=%llu", | ||
__entry->gpu_id, | ||
__entry->uid, | ||
__entry->start_time_ns, | ||
__entry->end_time_ns, | ||
__entry->total_active_duration_ns) | ||
); | ||
|
||
#endif /* _TRACE_POWER_GPU_WORK_PERIOD_H */ | ||
|
||
/* This part must be outside protection */ | ||
#include <trace/define_trace.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters