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
nexedi
linux
Commits
d21f73c0
Commit
d21f73c0
authored
May 24, 2002
by
Stéphane Eranian
Committed by
David Mosberger
May 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: Perfmon update.
parent
cb31399a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
712 additions
and
417 deletions
+712
-417
arch/ia64/kernel/perfmon.c
arch/ia64/kernel/perfmon.c
+704
-411
arch/ia64/kernel/process.c
arch/ia64/kernel/process.c
+5
-4
include/asm-ia64/perfmon.h
include/asm-ia64/perfmon.h
+3
-0
include/asm-ia64/processor.h
include/asm-ia64/processor.h
+0
-2
No files found.
arch/ia64/kernel/perfmon.c
View file @
d21f73c0
This diff is collapsed.
Click to expand it.
arch/ia64/kernel/process.c
View file @
d21f73c0
...
...
@@ -194,7 +194,7 @@ ia64_save_extra (struct task_struct *task)
pfm_save_regs
(
task
);
# ifdef CONFIG_SMP
if
(
local_cpu_data
->
pfm_syst_wide
)
if
(
this_cpu
(
pfm_syst_wide
)
)
pfm_syst_wide_update_task
(
task
,
0
);
# endif
#endif
...
...
@@ -216,7 +216,7 @@ ia64_load_extra (struct task_struct *task)
pfm_load_regs
(
task
);
# ifdef CONFIG_SMP
if
(
local_cpu_data
->
pfm_syst_wide
)
pfm_syst_wide_update_task
(
task
,
1
);
if
(
this_cpu
(
pfm_syst_wide
)
)
pfm_syst_wide_update_task
(
task
,
1
);
# endif
#endif
...
...
@@ -361,6 +361,8 @@ copy_thread (int nr, unsigned long clone_flags,
*/
atomic_set
(
&
p
->
thread
.
pfm_notifiers_check
,
0
);
atomic_set
(
&
p
->
thread
.
pfm_owners_check
,
0
);
/* clear list of sampling buffer to free for new task */
p
->
thread
.
pfm_smpl_buf_list
=
NULL
;
if
(
current
->
thread
.
pfm_context
)
retval
=
pfm_inherit
(
p
,
child_ptregs
);
#endif
...
...
@@ -570,9 +572,8 @@ exit_thread (void)
pfm_flush_regs
(
current
);
/* free debug register resources */
if
(
(
current
->
thread
.
flags
&
IA64_THREAD_DBG_VALID
)
!=
0
)
{
if
(
current
->
thread
.
flags
&
IA64_THREAD_DBG_VALID
)
pfm_release_debug_registers
(
current
);
}
#endif
}
...
...
include/asm-ia64/perfmon.h
View file @
d21f73c0
...
...
@@ -23,6 +23,7 @@
#define PFM_GET_FEATURES 0x0c
#define PFM_DEBUG 0x0d
#define PFM_UNPROTECT_CONTEXT 0x0e
#define PFM_GET_PMC_RESET_VAL 0x0f
/*
...
...
@@ -173,6 +174,8 @@ extern int pfm_cleanup_smpl_buf(struct task_struct *);
extern
void
pfm_syst_wide_update_task
(
struct
task_struct
*
,
int
);
extern
void
pfm_ovfl_block_reset
(
void
);
extern
int
pfm_syst_wide
;
#endif
/* __KERNEL__ */
#endif
/* _ASM_IA64_PERFMON_H */
include/asm-ia64/processor.h
View file @
d21f73c0
...
...
@@ -173,8 +173,6 @@ extern struct cpuinfo_ia64 {
__u64
ipi_count
;
__u64
prof_counter
;
__u64
prof_multiplier
;
__u32
pfm_syst_wide
;
__u32
pfm_dcr_pp
;
#endif
}
cpu_info
__per_cpu_data
;
...
...
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