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
a64b8908
Commit
a64b8908
authored
Jan 03, 2021
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coredump.h: move CONFIG_COREDUMP-only stuff inside the ifdef
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d0f1088b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/linux/coredump.h
include/linux/coredump.h
+5
-5
No files found.
include/linux/coredump.h
View file @
a64b8908
...
@@ -7,12 +7,17 @@
...
@@ -7,12 +7,17 @@
#include <linux/fs.h>
#include <linux/fs.h>
#include <asm/siginfo.h>
#include <asm/siginfo.h>
#ifdef CONFIG_COREDUMP
struct
core_vma_metadata
{
struct
core_vma_metadata
{
unsigned
long
start
,
end
;
unsigned
long
start
,
end
;
unsigned
long
flags
;
unsigned
long
flags
;
unsigned
long
dump_size
;
unsigned
long
dump_size
;
};
};
extern
int
core_uses_pid
;
extern
char
core_pattern
[];
extern
unsigned
int
core_pipe_limit
;
/*
/*
* These are the only things you should do on a core-file: use only these
* These are the only things you should do on a core-file: use only these
* functions to write out all the necessary info.
* functions to write out all the necessary info.
...
@@ -27,14 +32,9 @@ int dump_user_range(struct coredump_params *cprm, unsigned long start,
...
@@ -27,14 +32,9 @@ int dump_user_range(struct coredump_params *cprm, unsigned long start,
int
dump_vma_snapshot
(
struct
coredump_params
*
cprm
,
int
*
vma_count
,
int
dump_vma_snapshot
(
struct
coredump_params
*
cprm
,
int
*
vma_count
,
struct
core_vma_metadata
**
vma_meta
,
struct
core_vma_metadata
**
vma_meta
,
size_t
*
vma_data_size_ptr
);
size_t
*
vma_data_size_ptr
);
#ifdef CONFIG_COREDUMP
extern
void
do_coredump
(
const
kernel_siginfo_t
*
siginfo
);
extern
void
do_coredump
(
const
kernel_siginfo_t
*
siginfo
);
#else
#else
static
inline
void
do_coredump
(
const
kernel_siginfo_t
*
siginfo
)
{}
static
inline
void
do_coredump
(
const
kernel_siginfo_t
*
siginfo
)
{}
#endif
#endif
extern
int
core_uses_pid
;
extern
char
core_pattern
[];
extern
unsigned
int
core_pipe_limit
;
#endif
/* _LINUX_COREDUMP_H */
#endif
/* _LINUX_COREDUMP_H */
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