Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205275
b: refs/heads/master
c: aa59a48
h: refs/heads/master
i:
  205273: 50298e7
  205271: 9f5b4b5
v: v3
  • Loading branch information
Frederic Weisbecker committed Jun 24, 2010
1 parent 6adc7aa commit 0565650
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 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: f7809daf64bf119fef70af172db6a0636fa51f92
refs/heads/master: aa59a48596d8358a908bfb458300b5625cd47785
11 changes: 9 additions & 2 deletions trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,15 @@ parse_breakpoint_event(const char **strp, struct perf_event_attr *attr)
return EVT_FAILED;
}

/* We should find a nice way to override the access type */
attr->bp_len = HW_BREAKPOINT_LEN_4;
/*
* We should find a nice way to override the access length
* Provide some defaults for now
*/
if (attr->bp_type == HW_BREAKPOINT_X)
attr->bp_len = sizeof(long);
else
attr->bp_len = HW_BREAKPOINT_LEN_4;

attr->type = PERF_TYPE_BREAKPOINT;

return EVT_HANDLED;
Expand Down

0 comments on commit 0565650

Please sign in to comment.