Mmap wrapper#1
Open
lyrazhang wants to merge 7 commits into
Open
Conversation
The trace data in this example can be decoded successfully. Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
The channels 0~15 on Juno-r0 seem not permitted to be writen, this patch also change the start channel of mmap from 0 to 32768. The STM channel management policy will allocate the channels automatically from all unused channels. So if we want to mmap from a non-zero channel, we have to config the channel range manually, like below: / # mkdir /config/stp-policy/20100000.stm.abc / # mkdir /config/stp-policy/20100000.stm.abc/test / # echo 32768 65535 > config/stp-policy/20100000.stm.abc/test/channels Here '32768' is just the channel number from which we want to mmap STM stimulus space; 'test' is the policy name which we will use to mmap channel area. Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
This patch also removed enable_source, since closing the STM device will turn off it automatically, so don't need to disable STM via sysfs command. Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
my first pull request