Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds two multicore configurations to the echo server -
imx8mm_evk_4_cores
andodroidc4_4_cores
. The purpose of the changes to the surrounding files is to make the echo server easily generalise to single and multicore configurations.The most significant changes are to the benchmark process
benchmark.c
. It has been restructured so that:The above parameters are obtained during initialisation by a call to the
core_config
file. The information is encoded in acore_config_t
struct.The rest of the changes aim to be the minimal required to support the change to the benchmarking process. They are:
utilization_socket.c
to track the total and idle cycles of all cores which have PDs on them, rather than just one core.core_config.h
that provides the benchmark processes and the utilization socket information about what PDs are in the system and what core they are on. Changing which PD is on which core is simply a matter of updating thepd_core_info
array. Two core_config files are included - one for single core configurations, and one for the specific multicore configuration in the mutlicore system files.CONFIG_INCLUDE
directories are appended with_smp
to include the multicore config files.When built in a single core board, both
utilization_socket.c
and thebenchmark.c
behave almost unchanged, but they have been restructured so that no changes are required to the files in a multicore configuration - only to the system file, core config file and serial config file.Note that this PR is based off #254, and should be merged secondary to that.