Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmcsnoop: trace mmc operations #100

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

it-klinger
Copy link

print out mmc operations, the commands, flags and errors

Start it together with block io.
Therefore support for instances is needed and added in iosnoop and iolatency.

it-klinger and others added 6 commits January 7, 2021 10:50
Make use of ftrace instances feature for being able to start several
ftrace scripts simultaneously.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Make use of ftrace instances feature for being able to start several
ftrace scripts simultaneously.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Set a flag to indicate that file lock was written. Also add a warning
when switching off current_tracer.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Make usage of trace_clock global. This makes tracing output of different
cores compareable not only among each other but also to dmesg.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Prints out relevant datas of mmc commands by using ftrace framework.

In comparison to the iosnoop script which is tracing block i/o
operations there are a couple of informations special to mmc devices and
shown by this script:
- operation command (opcode)
- command argument
- command flags
- error code

Make use of ftrace instances feature for being able to start several
ftrace scripts simultaneously. Use trace_clock global to be compareable
to dmesg and between cpu cores.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Add a new script mmcsnoop for tracing mmc operations, especially for printing out command, their arguments, flags and error.

At the same time block-io should also be traced for being able to compare.
Therefore support for instances is needed and added to iosnoop and iolatency scripts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant