Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
5236eb96
Commit
5236eb96
authored
11 years ago
by
H. Peter Anvin
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'trace/tip/x86/trace' into x86/trace
Fix from Steven Rostedt.
parents
33e5ff63
2b4bc789
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/x86/include/asm/desc.h
+4
-6
4 additions, 6 deletions
arch/x86/include/asm/desc.h
arch/x86/kernel/tracepoint.c
+4
-0
4 additions, 0 deletions
arch/x86/kernel/tracepoint.c
with
8 additions
and
6 deletions
arch/x86/include/asm/desc.h
+
4
−
6
View file @
5236eb96
...
@@ -497,21 +497,19 @@ static inline void load_trace_idt(void)
...
@@ -497,21 +497,19 @@ static inline void load_trace_idt(void)
#endif
#endif
/*
/*
*
t
he load_current_idt()
is
called with interrupt disabled
by local_irq_save()
*
T
he load_current_idt()
must be
called with interrupt
s
disabled
* to avoid races. That way the IDT will always be set back to the expected
* to avoid races. That way the IDT will always be set back to the expected
* descriptor.
* descriptor. It's also called when a CPU is being initialized, and
* that doesn't need to disable interrupts, as nothing should be
* bothering the CPU then.
*/
*/
static
inline
void
load_current_idt
(
void
)
static
inline
void
load_current_idt
(
void
)
{
{
unsigned
long
flags
;
local_irq_save
(
flags
);
if
(
is_debug_idt_enabled
())
if
(
is_debug_idt_enabled
())
load_debug_idt
();
load_debug_idt
();
else
if
(
is_trace_idt_enabled
())
else
if
(
is_trace_idt_enabled
())
load_trace_idt
();
load_trace_idt
();
else
else
load_idt
((
const
struct
desc_ptr
*
)
&
idt_descr
);
load_idt
((
const
struct
desc_ptr
*
)
&
idt_descr
);
local_irq_restore
(
flags
);
}
}
#endif
/* _ASM_X86_DESC_H */
#endif
/* _ASM_X86_DESC_H */
This diff is collapsed.
Click to expand it.
arch/x86/kernel/tracepoint.c
+
4
−
0
View file @
5236eb96
...
@@ -29,7 +29,11 @@ static void set_trace_idt_ctr(int val)
...
@@ -29,7 +29,11 @@ static void set_trace_idt_ctr(int val)
static
void
switch_idt
(
void
*
arg
)
static
void
switch_idt
(
void
*
arg
)
{
{
unsigned
long
flags
;
local_irq_save
(
flags
);
load_current_idt
();
load_current_idt
();
local_irq_restore
(
flags
);
}
}
void
trace_irq_vector_regfunc
(
void
)
void
trace_irq_vector_regfunc
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment