Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6c827b9f
Commit
6c827b9f
authored
Apr 26, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: remove some old xmon debug code which broke with page->virtual
removal
parent
b8272a36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
68 deletions
+0
-68
arch/ppc64/xmon/xmon.c
arch/ppc64/xmon/xmon.c
+0
-68
No files found.
arch/ppc64/xmon/xmon.c
View file @
6c827b9f
...
...
@@ -123,7 +123,6 @@ static void mem_translate(void);
static
void
mem_check
(
void
);
static
void
mem_find_real
(
void
);
static
void
mem_find_vsid
(
void
);
static
void
mem_check_full_group
(
void
);
static
void
mem_check_pagetable_vsids
(
void
);
static
void
mem_map_check_slab
(
void
);
...
...
@@ -644,9 +643,6 @@ cmds(struct pt_regs *excp)
case
'c'
:
mem_check
();
break
;
case
'g'
:
mem_check_full_group
();
break
;
case
'j'
:
mem_map_check_slab
();
break
;
...
...
@@ -2706,70 +2702,6 @@ void mem_check_pagetable_vsids ()
}
void
mem_check_full_group
()
{
unsigned
long
htab_size_bytes
;
unsigned
count
;
unsigned
count_array
[]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
unsigned
i
;
unsigned
long
htab_end
;
HPTE
*
hpte1
,
*
hpte2
,
*
hpte3
;
u64
rpn
=
0
;
htab_size_bytes
=
htab_data
.
htab_num_ptegs
*
128
;
// 128B / PTEG
htab_end
=
(
unsigned
long
)
htab_data
.
htab
+
htab_size_bytes
;
printf
(
"
\n
Hardware Page Find full groups
\n
-------------------
\n
"
);
printf
(
"htab base : %.16lx
\n
"
,
htab_data
.
htab
);
printf
(
"htab size : %.16lx
\n
"
,
htab_size_bytes
);
for
(
hpte1
=
htab_data
.
htab
;
(
unsigned
long
)
hpte1
<
htab_end
;
hpte1
=
hpte1
+
8
)
{
count
=
0
;
hpte2
=
hpte1
;
for
(
i
=
0
;
i
<
8
;
++
i
)
{
if
(
hpte2
->
dw0
.
dw0
.
v
!=
0
)
{
count
++
;
}
hpte2
++
;
}
if
(
count
==
8
)
{
printf
(
" full group starting with entry %lx
\n
"
,
hpte1
);
hpte3
=
hpte1
;
for
(
i
=
0
;
i
<
8
;
++
i
)
{
if
(
hpte3
->
dw0
.
dw0
.
v
!=
0
)
{
printf
(
" entry number %d
\n
"
,
i
);
printf
(
" vsid: %.13lx api: %.2lx hash: %.1lx
\n
"
,
(
hpte3
->
dw0
.
dw0
.
avpn
)
>>
5
,
(
hpte3
->
dw0
.
dw0
.
avpn
)
&
0x1f
,
(
hpte3
->
dw0
.
dw0
.
h
));
printf
(
" rpn: %.13lx
\n
"
,
(
hpte3
->
dw1
.
dw1
.
rpn
));
// Dump out the memmap array entry address, corresponding virtual address, and reference count.
rpn
=
hpte3
->
dw1
.
dw1
.
rpn
;
printf
(
" mem_map+rpn=%p, virtual@=%p, count=%lx
\n
"
,
mem_map
+
rpn
,
(
mem_map
+
rpn
)
->
virtual
,
(
mem_map
+
rpn
)
->
count
);
}
hpte3
++
;
}
if
(
xmon_interrupted
())
return
;
}
count_array
[
count
]
++
;
}
for
(
i
=
1
;
i
<
9
;
++
i
)
{
printf
(
" group count for size %i = %lx
\n
"
,
i
,
count_array
[
i
]);
}
printf
(
"
\n
Done -------------------
\n
"
);
}
static
void
debug_trace
(
void
)
{
unsigned
long
val
,
cmd
,
on
;
...
...
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