1. 02 8月, 2016 2 次提交
  2. 13 7月, 2016 1 次提交
    • A
      tools: Introduce str_error_r() · c8b5f2c9
      Arnaldo Carvalho de Melo 提交于
      The tools so far have been using the strerror_r() GNU variant, that
      returns a string, be it the buffer passed or something else.
      
      But that, besides being tricky in cases where we expect that the
      function using strerror_r() returns the error formatted in a provided
      buffer (we have to check if it returned something else and copy that
      instead), breaks the build on systems not using glibc, like Alpine
      Linux, where musl libc is used.
      
      So, introduce yet another wrapper, str_error_r(), that has the GNU
      interface, but uses the portable XSI variant of strerror_r(), so that
      users rest asured that the provided buffer is used and it is what is
      returned.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-d4t42fnf48ytlk8rjxs822tf@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      c8b5f2c9
  3. 23 6月, 2016 2 次提交
  4. 15 6月, 2016 1 次提交
  5. 20 5月, 2016 1 次提交
  6. 06 5月, 2016 3 次提交
  7. 27 4月, 2016 1 次提交
  8. 18 4月, 2016 2 次提交
  9. 12 4月, 2016 1 次提交
  10. 24 3月, 2016 1 次提交
  11. 23 3月, 2016 2 次提交
  12. 27 2月, 2016 1 次提交
  13. 25 2月, 2016 1 次提交
  14. 03 2月, 2016 2 次提交
  15. 07 1月, 2016 3 次提交
  16. 18 12月, 2015 1 次提交
  17. 11 12月, 2015 6 次提交
  18. 23 10月, 2015 3 次提交
  19. 01 10月, 2015 2 次提交
  20. 29 9月, 2015 1 次提交
  21. 14 9月, 2015 2 次提交
  22. 20 8月, 2015 1 次提交
    • A
      perf top: Show backtrace when handling a SIGSEGV on --stdio mode · 09f4d78a
      Arnaldo Carvalho de Melo 提交于
      It was just freezing instead of informing about the SEGV, fix it and
      also print a backtrace, just like in the TUI mode and in 'perf trace'.
      
      Tested by provoking a NULL deref when pressing 'z':
      
           0.31%  libc-2.20.so     [.] malloc_consolidate
           0.31%  ld-2.20.so       [.] _dl_relocate_object
           0.28%  cc1              [.] ht_lookup
           0.28%  cc1              [.] ira_init_register_move_cost
        perf: Segmentation fault
        Obtained 7 stack frames.
        perf(dump_stack+0x32) [0x4d69f2]
        perf(sighandler_dump_stack+0x29) [0x4d6a89]
        /lib64/libc.so.6(+0x34960) [0x7f5064333960]
        perf() [0x438790]
        /lib64/libpthread.so.0(+0x752a) [0x7f50663dd52a]
        /lib64/libc.so.6(clone+0x6d) [0x7f50643ff22d]
        #
      Reported-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Borislav Petkov <bp@suse.de>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-pewrpzqd29rgmhu2wkk7fhww@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      09f4d78a