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
8eac5492
Commit
8eac5492
authored
May 03, 2003
by
John Levon
Committed by
Linus Torvalds
May 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] OProfile update
Change the lost_mmap_sem stat to lost_no_mm, and account it.
parent
6afeba7f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
drivers/oprofile/buffer_sync.c
drivers/oprofile/buffer_sync.c
+2
-0
drivers/oprofile/oprofile_stats.c
drivers/oprofile/oprofile_stats.c
+3
-3
drivers/oprofile/oprofile_stats.h
drivers/oprofile/oprofile_stats.h
+1
-1
No files found.
drivers/oprofile/buffer_sync.c
View file @
8eac5492
...
...
@@ -298,6 +298,8 @@ static void add_sample(struct mm_struct * mm, struct op_sample * s, int in_kerne
add_sample_entry
(
s
->
eip
,
s
->
event
);
}
else
if
(
mm
)
{
add_us_sample
(
mm
,
s
);
}
else
{
atomic_inc
(
&
oprofile_stats
.
sample_lost_no_mm
);
}
}
...
...
drivers/oprofile/oprofile_stats.c
View file @
8eac5492
...
...
@@ -31,7 +31,7 @@ void oprofile_reset_stats(void)
cpu_buf
->
sample_lost_task_exit
=
0
;
}
atomic_set
(
&
oprofile_stats
.
sample_lost_
mmap_se
m
,
0
);
atomic_set
(
&
oprofile_stats
.
sample_lost_
no_m
m
,
0
);
atomic_set
(
&
oprofile_stats
.
event_lost_overflow
,
0
);
}
...
...
@@ -68,8 +68,8 @@ void oprofile_create_stats_files(struct super_block * sb, struct dentry * root)
&
cpu_buf
->
sample_lost_task_exit
);
}
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"sample_lost_
mmap_se
m"
,
&
oprofile_stats
.
sample_lost_
mmap_se
m
);
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"sample_lost_
no_m
m"
,
&
oprofile_stats
.
sample_lost_
no_m
m
);
oprofilefs_create_ro_atomic
(
sb
,
dir
,
"event_lost_overflow"
,
&
oprofile_stats
.
event_lost_overflow
);
}
drivers/oprofile/oprofile_stats.h
View file @
8eac5492
...
...
@@ -13,7 +13,7 @@
#include <asm/atomic.h>
struct
oprofile_stat_struct
{
atomic_t
sample_lost_
mmap_se
m
;
atomic_t
sample_lost_
no_m
m
;
atomic_t
event_lost_overflow
;
};
...
...
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