Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147677
b: refs/heads/master
c: 1dba15e
h: refs/heads/master
i:
  147675: 85f3b63
v: v3
  • Loading branch information
Ingo Molnar committed Jun 5, 2009
1 parent eddca65 commit a69562f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: b2fef0762fdb65cf8702eea93f4e58abeb0ecefc
refs/heads/master: 1dba15e74aba5a90c1f2557f37e5d09f8a2df643
9 changes: 4 additions & 5 deletions trunk/Documentation/perf_counter/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ static void create_counter(int counter, int cpu, pid_t pid)
attr.config = event_id[counter];
attr.sample_period = event_count[counter];
attr.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID | PERF_SAMPLE_PERIOD;
attr.freq = freq;
if (freq) {
attr.freq = 1;
attr.sample_freq = freq;
}
attr.mmap = track;
attr.comm = track;
attr.inherit = (cpu < 0) && inherit;
Expand Down Expand Up @@ -544,10 +547,6 @@ int cmd_record(int argc, const char **argv, const char *prefix)
event_id[0] = 0;
}

if (freq) {
default_interval = freq;
freq = 1;
}
for (counter = 0; counter < nr_counters; counter++) {
if (event_count[counter])
continue;
Expand Down

0 comments on commit a69562f

Please sign in to comment.