Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
27ae4a22
Commit
27ae4a22
authored
Jul 28, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alloc: remove unused debugging function.
parent
bbd73800
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
ccan/alloc/alloc.c
ccan/alloc/alloc.c
+0
-43
No files found.
ccan/alloc/alloc.c
View file @
27ae4a22
...
@@ -509,49 +509,6 @@ static u16 get_small_page(struct header *head, unsigned long poolsize,
...
@@ -509,49 +509,6 @@ static u16 get_small_page(struct header *head, unsigned long poolsize,
return
ret
;
return
ret
;
}
}
void
where_is_page
(
struct
header
*
head
,
struct
page_header
*
where
,
unsigned
int
sp_bits
)
{
struct
page_header
*
pg
;
unsigned
long
off
,
bucket
,
num_buckets
=
max_bucket
(
sp_bits
+
BITS_FROM_SMALL_TO_LARGE_PAGE
);
for
(
off
=
head
->
small_free_list
;
off
;
off
=
pg
->
next
)
{
pg
=
from_pgnum
(
head
,
off
,
sp_bits
);
if
(
pg
==
where
)
{
printf
(
"It's in the small free list
\n
"
);
return
;
}
}
for
(
off
=
head
->
large_free_list
;
off
;
off
=
pg
->
next
)
{
pg
=
from_pgnum
(
head
,
off
,
sp_bits
);
if
(
pg
==
where
)
{
printf
(
"It's in the large free list
\n
"
);
return
;
}
}
for
(
bucket
=
0
;
bucket
<
num_buckets
;
bucket
++
)
{
for
(
off
=
head
->
bs
[
bucket
].
page_list
;
off
;
off
=
pg
->
next
)
{
pg
=
from_pgnum
(
head
,
off
,
sp_bits
);
if
(
pg
==
where
)
{
printf
(
"It's in %lu bucket page list
\n
"
,
bucket
);
return
;
}
}
for
(
off
=
head
->
bs
[
bucket
].
full_list
;
off
;
off
=
pg
->
next
)
{
pg
=
from_pgnum
(
head
,
off
,
sp_bits
);
if
(
pg
==
where
)
{
printf
(
"It's in %lu bucket full list
\n
"
,
bucket
);
return
;
}
}
}
printf
(
"It's nowhere!
\n
"
);
}
static
bool
huge_allocated
(
struct
header
*
head
,
unsigned
long
offset
)
static
bool
huge_allocated
(
struct
header
*
head
,
unsigned
long
offset
)
{
{
unsigned
long
i
;
unsigned
long
i
;
...
...
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