Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191199
b: refs/heads/master
c: bdef3b0
h: refs/heads/master
i:
  191197: 5489f71
  191195: cff2a79
  191191: 953dc65
  191183: ffbbdc6
  191167: 14eb9ab
v: v3
  • Loading branch information
Frederic Weisbecker committed Apr 15, 2010
1 parent 2fd343a commit ac7e5f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 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: 7865e817e9b4b378ac57ab7f16183100b95466ce
refs/heads/master: bdef3b02ceeb97f5f67fcfa6dff13c4e70b34fb7
2 changes: 1 addition & 1 deletion trunk/tools/perf/Documentation/perf-record.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ OPTIONS

-R::
--raw-samples::
Collect raw sample records from all opened counters (typically for tracepoint counters).
Collect raw sample records from all opened counters (default for tracepoint counters).

SEE ALSO
--------
Expand Down
14 changes: 4 additions & 10 deletions trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ static enum event_result
parse_single_tracepoint_event(char *sys_name,
const char *evt_name,
unsigned int evt_length,
char *flags,
struct perf_event_attr *attr,
const char **strp)
{
Expand All @@ -419,13 +418,9 @@ parse_single_tracepoint_event(char *sys_name,
u64 id;
int fd;

if (flags) {
if (!strncmp(flags, "record", strlen(flags))) {
attr->sample_type |= PERF_SAMPLE_RAW;
attr->sample_type |= PERF_SAMPLE_TIME;
attr->sample_type |= PERF_SAMPLE_CPU;
}
}
attr->sample_type |= PERF_SAMPLE_RAW;
attr->sample_type |= PERF_SAMPLE_TIME;
attr->sample_type |= PERF_SAMPLE_CPU;

snprintf(evt_path, MAXPATHLEN, "%s/%s/%s/id", debugfs_path,
sys_name, evt_name);
Expand Down Expand Up @@ -533,8 +528,7 @@ static enum event_result parse_tracepoint_event(const char **strp,
flags);
} else
return parse_single_tracepoint_event(sys_name, evt_name,
evt_length, flags,
attr, strp);
evt_length, attr, strp);
}

static enum event_result
Expand Down

0 comments on commit ac7e5f7

Please sign in to comment.