Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
2b3ce7b8
Commit
2b3ce7b8
authored
Nov 03, 2016
by
danh-arm
Committed by
GitHub
Nov 03, 2016
Browse files
Merge pull request #748 from dp-arm/dp/arm-sip
BL31 runtime instrumentation fixes and documentation update
parents
2fef96a3
bfef6106
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/user-guide.md
View file @
2b3ce7b8
...
@@ -466,6 +466,12 @@ performed.
...
@@ -466,6 +466,12 @@ performed.
Note:
`TRUSTED_BOARD_BOOT`
is currently not supported when
`LOAD_IMAGE_V2`
Note:
`TRUSTED_BOARD_BOOT`
is currently not supported when
`LOAD_IMAGE_V2`
is enabled.
is enabled.
*
`ENABLE_RUNTIME_INSTRUMENTATION`
: Boolean option to enable runtime
instrumentation which injects timestamp collection points into
Trusted Firmware to allow runtime performance to be measured.
Currently, only PSCI is instrumented. Enabling this option enables
the
`ENABLE_PMF`
build option as well. Default is 0.
#### ARM development platform specific build options
#### ARM development platform specific build options
*
`ARM_TSP_RAM_LOCATION`
: location of the TSP binary. Options:
*
`ARM_TSP_RAM_LOCATION`
: location of the TSP binary. Options:
...
...
services/std_svc/std_svc_setup.c
View file @
2b3ce7b8
...
@@ -81,9 +81,14 @@ uintptr_t std_svc_smc_handler(uint32_t smc_fid,
...
@@ -81,9 +81,14 @@ uintptr_t std_svc_smc_handler(uint32_t smc_fid,
uint64_t
ret
;
uint64_t
ret
;
#if ENABLE_RUNTIME_INSTRUMENTATION
#if ENABLE_RUNTIME_INSTRUMENTATION
/*
* Flush cache line so that even if CPU power down happens
* the timestamp update is reflected in memory.
*/
PMF_WRITE_TIMESTAMP
(
rt_instr_svc
,
PMF_WRITE_TIMESTAMP
(
rt_instr_svc
,
RT_INSTR_ENTER_PSCI
,
RT_INSTR_ENTER_PSCI
,
PMF_
NO_
CACHE_MAINT
,
PMF_CACHE_MAINT
,
get_cpu_data
(
cpu_data_pmf_ts
[
CPU_DATA_PMF_TS0_IDX
]));
get_cpu_data
(
cpu_data_pmf_ts
[
CPU_DATA_PMF_TS0_IDX
]));
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment