lkml.org 
[lkml]   [2013]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] perf tools: allow user to specify hardware breakpoint bp_len
On 12/10, Frederic Weisbecker wrote:
>
> On Wed, Oct 02, 2013 at 11:11:07AM -0500, suravee.suthikulpanit@amd.com wrote:
> > @@ -525,14 +525,11 @@ int parse_events_add_breakpoint(struct list_head *list, int *idx,
> > if (parse_breakpoint_type(type, &attr))
> > return -EINVAL;
> >
> > - /*
> > - * 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;
> > + /* Provide some defaults if len is not specified */
> > + if (!len)
> > + len = attr.bp_type == HW_BREAKPOINT_X ? sizeof(long) :
> > + HW_BREAKPOINT_LEN_4;
>
> Why is LEN_4 affected in the type?

Hmm, what do you mean?

Oleg.



\
 
 \ /
  Last update: 2013-12-10 17:41    [W:0.213 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site