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

kdb: Add MPU dump #131

Merged
merged 1 commit into from
Oct 27, 2016
Merged

kdb: Add MPU dump #131

merged 1 commit into from
Oct 27, 2016

Conversation

louisom
Copy link
Contributor

@louisom louisom commented Oct 13, 2016

For education reason, we can add MPU dump in kdb
to observe MPU status interactively.

This commit simply make an warp function kdb_dump_mpu for mpu_dump,
since mpu_dump already print the title, I slightly change the parameter
of mpu_dump to change this behavior.

The result will look like this:

    ## KDB ##
    commands:
    K: print kernel tables
    e: dump ktimer events
    n: show timer (now)
    s: show softirqs
    t: dump threads
    M: dump MPU status
    m: dump memory pools
    a: dump address spaces
    p: show sampling
    ----------------


## KDB ##
-------MPU------
b:20011800, sz:2**8, attr:1300
b:20011900, sz:2**8, attr:1300
b:20011a00, sz:2**8, attr:1300
b:20010800, sz:2**11, attr:0300
b:20012400, sz:2**8, attr:1300
b:2000f800, sz:2**11, attr:0300
b:20011600, sz:2**8, attr:1300
b:20010000, sz:2**10, attr:0300
----------------

For education reason, we can add MPU dump in kdb
to observe MPU status interactively.

This commit simply make an warp function `kdb_dump_mpu` for `mpu_dump`,
since `mpu_dump` already print the title, I slightly change the parameter
of `mpu_dump` to change this behavior.

The result will look like this:

	## KDB ##
	commands:
	K: print kernel tables
	e: dump ktimer events
	n: show timer (now)
	s: show softirqs
	t: dump threads
	M: dump MPU status
	m: dump memory pools
	a: dump address spaces
	p: show sampling
	----------------

	## KDB ##
	-------MPU------
	b:20011800, sz:2**8, attr:1300
	b:20011900, sz:2**8, attr:1300
	b:20011a00, sz:2**8, attr:1300
	b:20010800, sz:2**11, attr:0300
	b:20012400, sz:2**8, attr:1300
	b:2000f800, sz:2**11, attr:0300
	b:20011600, sz:2**8, attr:1300
	b:20010000, sz:2**10, attr:0300
	----------------
@louisom louisom closed this Oct 13, 2016
@louisom louisom reopened this Oct 13, 2016
@jserv jserv merged commit ce4a6d4 into f9micro:master Oct 27, 2016
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.

2 participants