lkml.org 
[lkml]   [2009]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 1/5] perf_counter: fix perf-$cmd invokation
    Fix:

    $ perf-top
    fatal: cannot handle -top internally

    LKML-Reference: <new-submission>
    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    Documentation/perf_counter/perf.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/Documentation/perf_counter/perf.c
    ===================================================================
    --- linux-2.6.orig/Documentation/perf_counter/perf.c
    +++ linux-2.6/Documentation/perf_counter/perf.c
    @@ -357,7 +357,7 @@ int main(int argc, const char **argv)
    * die if that one cannot handle it.
    */
    if (!prefixcmp(cmd, "perf-")) {
    - cmd += 4;
    + cmd += 5;
    argv[0] = cmd;
    handle_internal_command(argc, argv);
    die("cannot handle %s internally", cmd);
    --



    \
     
     \ /
      Last update: 2009-05-25 14:51    [W:0.027 / U:61.672 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site