Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
98a9a4c3
Commit
98a9a4c3
authored
Dec 30, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shmem: Remove write-only fields from shmem-info
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
a1b1959d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
shmem.c
shmem.c
+1
-8
No files found.
shmem.c
View file @
98a9a4c3
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
*/
*/
struct
shmem_info
{
struct
shmem_info
{
unsigned
long
shmid
;
unsigned
long
shmid
;
unsigned
long
start
;
unsigned
long
end
;
unsigned
long
size
;
unsigned
long
size
;
int
pid
;
int
pid
;
int
fd
;
int
fd
;
...
@@ -63,8 +61,7 @@ void show_saved_shmems(void)
...
@@ -63,8 +61,7 @@ void show_saved_shmems(void)
pr_info
(
"
\t
Saved shmems:
\n
"
);
pr_info
(
"
\t
Saved shmems:
\n
"
);
list_for_each_entry
(
si
,
&
shmems
,
l
)
list_for_each_entry
(
si
,
&
shmems
,
l
)
pr_info
(
"
\t\t
start: 0x%016lx shmid: 0x%lx pid: %d
\n
"
,
pr_info
(
"
\t\t
shmid: 0x%lx pid: %d
\n
"
,
si
->
shmid
,
si
->
pid
);
si
->
start
,
si
->
shmid
,
si
->
pid
);
}
}
static
struct
shmem_info
*
find_shmem_by_id
(
unsigned
long
shmid
)
static
struct
shmem_info
*
find_shmem_by_id
(
unsigned
long
shmid
)
...
@@ -104,8 +101,6 @@ int collect_shmem(int pid, VmaEntry *vi)
...
@@ -104,8 +101,6 @@ int collect_shmem(int pid, VmaEntry *vi)
}
}
si
->
pid
=
pid
;
si
->
pid
=
pid
;
si
->
start
=
vi
->
start
;
si
->
end
=
vi
->
end
;
si
->
self_count
=
1
;
si
->
self_count
=
1
;
return
0
;
return
0
;
...
@@ -118,8 +113,6 @@ int collect_shmem(int pid, VmaEntry *vi)
...
@@ -118,8 +113,6 @@ int collect_shmem(int pid, VmaEntry *vi)
pr_info
(
"Add new shmem 0x%"
PRIx64
" (0x%016"
PRIx64
"-0x%016"
PRIx64
")
\n
"
,
pr_info
(
"Add new shmem 0x%"
PRIx64
" (0x%016"
PRIx64
"-0x%016"
PRIx64
")
\n
"
,
vi
->
shmid
,
vi
->
start
,
vi
->
end
);
vi
->
shmid
,
vi
->
start
,
vi
->
end
);
si
->
start
=
vi
->
start
;
si
->
end
=
vi
->
end
;
si
->
shmid
=
vi
->
shmid
;
si
->
shmid
=
vi
->
shmid
;
si
->
pid
=
pid
;
si
->
pid
=
pid
;
si
->
size
=
size
;
si
->
size
=
size
;
...
...
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