Skip to content

Commit 8c1df40

Browse files
author
Ingo Molnar
committed
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/core
2 parents 6c529a2 + 21dd9ae commit 8c1df40

23 files changed

Lines changed: 277 additions & 144 deletions

‎tools/perf/Documentation/perf-diff.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ OPTIONS
6666
--force::
6767
Don't complain, do it.
6868

69+
--symfs=<directory>::
70+
Look for files with symbols relative to this directory.
6971

7072
SEE ALSO
7173
--------

‎tools/perf/Documentation/perf-probe.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ LINE SYNTAX
117117
-----------
118118
Line range is described by following syntax.
119119

120-
"FUNC[:RLN[+NUM|-RLN2]]|SRC:ALN[+NUM|-ALN2]"
120+
"FUNC[:RLN[+NUM|-RLN2]]|SRC[:ALN[+NUM|-ALN2]]"
121121

122122
FUNC specifies the function name of showing lines. 'RLN' is the start line
123123
number from function entry line, and 'RLN2' is the end line number. As same as

‎tools/perf/Documentation/perf-report.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ OPTIONS
116116
--force::
117117
Don't complain, do it.
118118

119+
--symfs=<directory>::
120+
Look for files with symbols relative to this directory.
121+
119122
SEE ALSO
120123
--------
121124
linkperf:perf-stat[1]

‎tools/perf/Documentation/perf-timechart.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ OPTIONS
3838
--process::
3939
Select the processes to display, by name or PID
4040

41+
--symfs=<directory>::
42+
Look for files with symbols relative to this directory.
4143

4244
SEE ALSO
4345
--------

‎tools/perf/builtin-annotate.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,16 @@ static struct perf_event_ops event_ops = {
375375
.mmap = event__process_mmap,
376376
.comm = event__process_comm,
377377
.fork = event__process_task,
378+
.ordered_samples = true,
379+
.ordering_requires_timestamps = true,
378380
};
379381

380382
static int __cmd_annotate(void)
381383
{
382384
int ret;
383385
struct perf_session *session;
384386

385-
session = perf_session__new(input_name, O_RDONLY, force, false);
387+
session = perf_session__new(input_name, O_RDONLY, force, false, &event_ops);
386388
if (session == NULL)
387389
return -ENOMEM;
388390

‎tools/perf/builtin-buildid-list.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ static int __cmd_buildid_list(void)
3939
int err = -1;
4040
struct perf_session *session;
4141

42-
session = perf_session__new(input_name, O_RDONLY, force, false);
42+
session = perf_session__new(input_name, O_RDONLY, force, false,
43+
&build_id__mark_dso_hit_ops);
4344
if (session == NULL)
4445
return -1;
4546

‎tools/perf/builtin-diff.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ static struct perf_event_ops event_ops = {
6161
.exit = event__process_task,
6262
.fork = event__process_task,
6363
.lost = event__process_lost,
64+
.ordered_samples = true,
65+
.ordering_requires_timestamps = true,
6466
};
6567

6668
static void perf_session__insert_hist_entry_by_name(struct rb_root *root,
@@ -142,8 +144,8 @@ static int __cmd_diff(void)
142144
int ret, i;
143145
struct perf_session *session[2];
144146

145-
session[0] = perf_session__new(input_old, O_RDONLY, force, false);
146-
session[1] = perf_session__new(input_new, O_RDONLY, force, false);
147+
session[0] = perf_session__new(input_old, O_RDONLY, force, false, &event_ops);
148+
session[1] = perf_session__new(input_new, O_RDONLY, force, false, &event_ops);
147149
if (session[0] == NULL || session[1] == NULL)
148150
return -ENOMEM;
149151

@@ -192,6 +194,8 @@ static const struct option options[] = {
192194
OPT_STRING('t', "field-separator", &symbol_conf.field_sep, "separator",
193195
"separator for columns, no spaces will be added between "
194196
"columns '.' is reserved."),
197+
OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory",
198+
"Look for files with symbols relative to this directory"),
195199
OPT_END()
196200
};
197201

‎tools/perf/builtin-inject.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static int __cmd_inject(void)
196196
inject_ops.tracing_data = event__repipe_tracing_data;
197197
}
198198

199-
session = perf_session__new(input_name, O_RDONLY, false, true);
199+
session = perf_session__new(input_name, O_RDONLY, false, true, &inject_ops);
200200
if (session == NULL)
201201
return -ENOMEM;
202202

‎tools/perf/builtin-kmem.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,8 @@ static void sort_result(void)
481481
static int __cmd_kmem(void)
482482
{
483483
int err = -EINVAL;
484-
struct perf_session *session = perf_session__new(input_name, O_RDONLY, 0, false);
484+
struct perf_session *session = perf_session__new(input_name, O_RDONLY,
485+
0, false, &event_ops);
485486
if (session == NULL)
486487
return -ENOMEM;
487488

‎tools/perf/builtin-lock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ static struct perf_event_ops eops = {
858858

859859
static int read_events(void)
860860
{
861-
session = perf_session__new(input_name, O_RDONLY, 0, false);
861+
session = perf_session__new(input_name, O_RDONLY, 0, false, &eops);
862862
if (!session)
863863
die("Initializing perf session failed\n");
864864

0 commit comments

Comments
 (0)