1. 27 9月, 2012 11 次提交
  2. 26 9月, 2012 4 次提交
  3. 25 9月, 2012 3 次提交
    • N
      tools lib traceevent: Fix error path on pevent_parse_event · f1b2256d
      Namhyung Kim 提交于
      If __pevent_parse_format() succeeded but add_event() failed, 'ret' didn't
      have a proper error code.  Set it to PEVENT_ERRNO__MEM_ALLOC_FAILED.
      
      In addition, at that point 'event' also has fields and format
      information and they all need to be freed.  Call pevent_free_format() to
      handle it.
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/1348575919-4954-1-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f1b2256d
    • N
      perf test: Fix build failure · af9da88f
      Namhyung Kim 提交于
      The commit 6a6cd11d ("perf test: Add test for the sched tracepoint
      format fields") added following build error:
      
          CC builtin-test.o
        builtin-test.c: In function ‘perf_evsel__test_field’:
        builtin-test.c:1216:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
        builtin-test.c: In function ‘perf_evsel__tp_sched_test’:
        builtin-test.c:1242:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable]
        cc1: all warnings being treated as errors
        make: *** [builtin-test.o] Error 1
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1348539628-3821-1-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      af9da88f
    • I
      Merge tag 'perf-core-for-mingo' of... · f74eb728
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
       * Convert the trace builtins to use the growing evsel/evlist
         tracepoint infrastructure, removing several open coded constructs
         like switch like series of strcmp to dispatch events, etc.
         Basically what had already been showcased in 'perf sched'.
      
       * Add evsel constructor for tracepoints, that uses libtraceevent
         just to parse the /format events file, use it in a new 'perf test'
         to make sure the libtraceevent format parsing regressions can
         be more readily caught.
      
       * Some strange errors were happening in some builds, but not on the
         next, reported by several people, problem was some parser related
         files, generated during the build, didn't had proper make deps,
         fix from Eric Sandeen.
      
       * Fix some compiling errors on 32-bit, from Feng Tang.
      
       * Don't use sscanf extension %as, not available on bionic, reimplementation
         by Irina Tirdea.
      
       * Fix bfd.h/libbfd detection with recent binutils, from Markus Trippelsdorf.
      
       * Introduce struct and cache information about the environment where a
         perf.data file was captured, from Namhyung Kim.
      
       * Fix several error paths in libtraceevent, from Namhyung Kim.
      
         Print event causing perf_event_open() to fail in 'perf record',
         from Stephane Eranian.
      
       * New 'kvm' analysis tool, from Xiao Guangrong.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      f74eb728
  4. 24 9月, 2012 22 次提交