Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349903
b: refs/heads/master
c: 3a5afae
h: refs/heads/master
i:
  349901: af8f34e
  349899: 149a3ea
  349895: c060851
  349887: a564cca
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Dec 11, 2012
1 parent 15ae77d commit ff0fd5d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a5a5ca5fe3df8636c96b49591c23baf7c415dd4
refs/heads/master: 3a5afaec593954a399967155db47f72cb8828a6a
2 changes: 1 addition & 1 deletion trunk/tools/perf/tests/attr/base-record
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ size=96
config=0
sample_period=4000
sample_type=263
read_format=7
read_format=3
disabled=1
inherit=1
pinned=0
Expand Down
2 changes: 2 additions & 0 deletions trunk/tools/perf/tests/attr/test-record-group
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ args = --group -e cycles,instructions kill >/dev/null 2>&1
fd=1
group_fd=-1
sample_type=327
read_format=7

[event-2:base-record]
fd=2
group_fd=1
config=1
sample_type=327
read_format=7
mmap=0
comm=0
enable_on_exec=0
Expand Down
2 changes: 2 additions & 0 deletions trunk/tools/perf/tests/attr/test-record-group1
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ args = -e '{cycles,instructions}' kill >/tmp/krava 2>&1
fd=1
group_fd=-1
sample_type=327
read_format=7

[event-2:base-record]
fd=2
group_fd=1
type=0
config=1
sample_type=327
read_format=7
mmap=0
comm=0
enable_on_exec=0
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/evlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void perf_evlist__config_attrs(struct perf_evlist *evlist,
perf_evsel__config(evsel, opts);

if (evlist->nr_entries > 1)
perf_evsel__set_sample_bit(evsel, ID);
perf_evsel__set_sample_id(evsel);
}
}

Expand Down
3 changes: 1 addition & 2 deletions trunk/tools/perf/util/evsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ void perf_evsel__config(struct perf_evsel *evsel,
attr->sample_id_all = opts->sample_id_all_missing ? 0 : 1;
attr->inherit = !opts->no_inherit;
attr->read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
PERF_FORMAT_TOTAL_TIME_RUNNING |
PERF_FORMAT_ID;
PERF_FORMAT_TOTAL_TIME_RUNNING;

perf_evsel__set_sample_bit(evsel, IP);
perf_evsel__set_sample_bit(evsel, TID);
Expand Down

0 comments on commit ff0fd5d

Please sign in to comment.