lkml.org 
[lkml]   [2009]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/18] oprofile: simplify add_ibs_begin()
    Date
    Signed-off-by: Robert Richter <robert.richter@amd.com>
    ---
    drivers/oprofile/buffer_sync.c | 7 ++-----
    1 files changed, 2 insertions(+), 5 deletions(-)

    diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
    index 22cdb51..7415d2e 100644
    --- a/drivers/oprofile/buffer_sync.c
    +++ b/drivers/oprofile/buffer_sync.c
    @@ -333,7 +333,7 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)

    sample = op_cpu_buffer_read_entry(cpu);
    if (!sample)
    - goto Error;
    + return;
    rip = sample->eip;

    #ifdef __LP64__
    @@ -372,15 +372,12 @@ static void add_ibs_begin(int cpu, int code, struct mm_struct *mm)
    for (i = 0; i < count; i++) {
    sample = op_cpu_buffer_read_entry(cpu);
    if (!sample)
    - goto Error;
    + return;
    add_event_entry(sample->eip);
    add_event_entry(sample->event);
    }

    return;
    -
    -Error:
    - return;
    }

    #endif
    --
    1.6.0.1



    \
     
     \ /
      Last update: 2009-01-07 23:33    [W:0.021 / U:59.264 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site