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
2c3757e5
Commit
2c3757e5
authored
Dec 05, 2011
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'perf/urgent' of
git://github.com/acmel/linux
into perf/urgent
parents
10c6db11
47fbe53b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
tools/perf/util/evsel.c
tools/perf/util/evsel.c
+10
-0
tools/perf/util/hist.c
tools/perf/util/hist.c
+0
-10
tools/perf/util/hist.h
tools/perf/util/hist.h
+0
-2
tools/perf/util/session.c
tools/perf/util/session.c
+4
-0
No files found.
tools/perf/util/evsel.c
View file @
2c3757e5
...
...
@@ -34,6 +34,16 @@ int __perf_evsel__sample_size(u64 sample_type)
return
size
;
}
static
void
hists__init
(
struct
hists
*
hists
)
{
memset
(
hists
,
0
,
sizeof
(
*
hists
));
hists
->
entries_in_array
[
0
]
=
hists
->
entries_in_array
[
1
]
=
RB_ROOT
;
hists
->
entries_in
=
&
hists
->
entries_in_array
[
0
];
hists
->
entries_collapsed
=
RB_ROOT
;
hists
->
entries
=
RB_ROOT
;
pthread_mutex_init
(
&
hists
->
lock
,
NULL
);
}
void
perf_evsel__init
(
struct
perf_evsel
*
evsel
,
struct
perf_event_attr
*
attr
,
int
idx
)
{
...
...
tools/perf/util/hist.c
View file @
2c3757e5
...
...
@@ -1211,13 +1211,3 @@ size_t hists__fprintf_nr_events(struct hists *hists, FILE *fp)
return
ret
;
}
void
hists__init
(
struct
hists
*
hists
)
{
memset
(
hists
,
0
,
sizeof
(
*
hists
));
hists
->
entries_in_array
[
0
]
=
hists
->
entries_in_array
[
1
]
=
RB_ROOT
;
hists
->
entries_in
=
&
hists
->
entries_in_array
[
0
];
hists
->
entries_collapsed
=
RB_ROOT
;
hists
->
entries
=
RB_ROOT
;
pthread_mutex_init
(
&
hists
->
lock
,
NULL
);
}
tools/perf/util/hist.h
View file @
2c3757e5
...
...
@@ -63,8 +63,6 @@ struct hists {
struct
callchain_cursor
callchain_cursor
;
};
void
hists__init
(
struct
hists
*
hists
);
struct
hist_entry
*
__hists__add_entry
(
struct
hists
*
self
,
struct
addr_location
*
al
,
struct
symbol
*
parent
,
u64
period
);
...
...
tools/perf/util/session.c
View file @
2c3757e5
...
...
@@ -1333,6 +1333,10 @@ int perf_session__cpu_bitmap(struct perf_session *session,
}
map
=
cpu_map__new
(
cpu_list
);
if
(
map
==
NULL
)
{
pr_err
(
"Invalid cpu_list
\n
"
);
return
-
1
;
}
for
(
i
=
0
;
i
<
map
->
nr
;
i
++
)
{
int
cpu
=
map
->
map
[
i
];
...
...
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