Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
71e0e556
Commit
71e0e556
authored
Mar 14, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multithreaded core dumps.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
a3701ca4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
arch/mips/kernel/process.c
arch/mips/kernel/process.c
+8
-0
include/asm-mips/elf.h
include/asm-mips/elf.h
+2
-0
No files found.
arch/mips/kernel/process.c
View file @
71e0e556
...
@@ -167,6 +167,14 @@ void dump_regs(elf_greg_t *gp, struct pt_regs *regs)
...
@@ -167,6 +167,14 @@ void dump_regs(elf_greg_t *gp, struct pt_regs *regs)
#endif
#endif
}
}
int
dump_task_regs
(
struct
task_struct
*
tsk
,
elf_gregset_t
*
regs
)
{
struct
thread_info
*
ti
=
tsk
->
thread_info
;
long
ksp
=
(
unsigned
long
)
ti
+
THREAD_SIZE
-
32
;
dump_regs
(
&
(
*
regs
)[
0
],
(
struct
pt_regs
*
)
ksp
-
1
);
return
1
;
}
int
dump_task_fpu
(
struct
task_struct
*
t
,
elf_fpregset_t
*
fpr
)
int
dump_task_fpu
(
struct
task_struct
*
t
,
elf_fpregset_t
*
fpr
)
{
{
memcpy
(
fpr
,
&
t
->
thread
.
fpu
,
sizeof
(
current
->
thread
.
fpu
));
memcpy
(
fpr
,
&
t
->
thread
.
fpu
,
sizeof
(
current
->
thread
.
fpu
));
...
...
include/asm-mips/elf.h
View file @
71e0e556
...
@@ -225,10 +225,12 @@ do { current->thread.mflags &= ~MF_ABI_MASK; \
...
@@ -225,10 +225,12 @@ do { current->thread.mflags &= ~MF_ABI_MASK; \
#endif
/* CONFIG_64BIT */
#endif
/* CONFIG_64BIT */
extern
void
dump_regs
(
elf_greg_t
*
,
struct
pt_regs
*
regs
);
extern
void
dump_regs
(
elf_greg_t
*
,
struct
pt_regs
*
regs
);
extern
int
dump_task_regs
(
struct
task_struct
*
,
elf_gregset_t
*
);
extern
int
dump_task_fpu
(
struct
task_struct
*
,
elf_fpregset_t
*
);
extern
int
dump_task_fpu
(
struct
task_struct
*
,
elf_fpregset_t
*
);
#define ELF_CORE_COPY_REGS(elf_regs, regs) \
#define ELF_CORE_COPY_REGS(elf_regs, regs) \
dump_regs((elf_greg_t *)&(elf_regs), regs);
dump_regs((elf_greg_t *)&(elf_regs), regs);
#define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs)
#define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) \
#define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) \
dump_task_fpu(tsk, elf_fpregs)
dump_task_fpu(tsk, elf_fpregs)
...
...
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