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
35781a8c
Commit
35781a8c
authored
Nov 15, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: Drop redundant vma_area->vma.status assignment
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
3542220a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
image.h
include/image.h
+1
-0
util.h
include/util.h
+1
-0
util.c
util.c
+0
-2
No files found.
include/image.h
View file @
35781a8c
...
...
@@ -50,6 +50,7 @@ struct pipe_entry {
u8
data
[
0
];
}
__packed
;
#define VMA_AREA_NONE (0 << 0)
#define VMA_AREA_REGULAR (1 << 0)
/* Dumpable area */
#define VMA_AREA_STACK (1 << 1)
#define VMA_AREA_VSYSCALL (1 << 2)
...
...
include/util.h
View file @
35781a8c
...
...
@@ -135,6 +135,7 @@ void printk_vma(struct vma_area *vma_area);
pr_info_vma(vma); \
} while (0)
/* Note while VMA_AREA_NONE we rely on xzalloc */
#define alloc_vma_area() \
({ \
struct vma_area *p__ = xzalloc(sizeof(*p__)); \
...
...
util.c
View file @
35781a8c
...
...
@@ -327,8 +327,6 @@ int parse_maps(pid_t pid, struct list_head *vma_area_list, bool use_map_files)
else
if
(
s
==
'p'
)
vma_area
->
vma
.
flags
=
MAP_PRIVATE
;
vma_area
->
vma
.
status
=
0
;
if
(
strstr
(
big_buffer
,
"[stack]"
))
{
vma_area
->
vma
.
status
|=
VMA_AREA_REGULAR
|
VMA_AREA_STACK
;
vma_area
->
vma
.
prot
|=
PROT_GROWSDOWN
;
...
...
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