forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
soc: qcom: Add tracepoints to mdt loader
Add trace events to the mdt loader driver. These events can help us trace the region where we are loading the segments and the time it takes to initialize the image and setup the memory region. Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
- Loading branch information
1 parent
306e3e9
commit 437cc5c0ceb1f4b36564b99d7289af089576fdd0
Showing
2 changed files
with
45 additions
and
0 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0-only */ | ||
| /* | ||
| * Copyright (c) 2020, The Linux Foundation. All rights reserved. | ||
| */ | ||
|
|
||
| #undef TRACE_SYSTEM | ||
| #define TRACE_SYSTEM mdt_loader | ||
|
|
||
| #if !defined(_TRACE_MDT_LOADER_H) || defined(TRACE_HEADER_MULTI_READ) | ||
| #define _TRACE_MDT_LOADER_H | ||
|
|
||
| #include <linux/types.h> | ||
| #include <linux/tracepoint.h> | ||
|
|
||
| TRACE_EVENT(qcom_mdt_load_segment, | ||
|
|
||
| TP_PROTO(phys_addr_t region_start, size_t region_size, const char *fw), | ||
|
|
||
| TP_ARGS(region_start, region_size, fw), | ||
|
|
||
| TP_STRUCT__entry( | ||
| __field(phys_addr_t, region_start) | ||
| __field(size_t, region_size) | ||
| __string(fw, fw) | ||
| ), | ||
|
|
||
| TP_fast_assign( | ||
| __entry->region_start = region_start; | ||
| __entry->region_size = region_size; | ||
| __assign_str(fw, fw); | ||
| ), | ||
|
|
||
| TP_printk("firmware:%s region start=%pa size=%zx", | ||
| __get_str(fw), __entry->region_start, __entry->region_size) | ||
| ); | ||
|
|
||
| #endif | ||
| #include <trace/define_trace.h> |