linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Perf report --percentage
@ 2016-06-07 19:21 Sebastian, Shiny
  2016-06-08  7:34 ` Milian Wolff
  0 siblings, 1 reply; 9+ messages in thread
From: Sebastian, Shiny @ 2016-06-07 19:21 UTC (permalink / raw)
  To: linux-perf-users@vger.kernel.org


Hi,
 
I work with Intel and am running perf tool within Linux VMs on Windows Hyper-V.  With kernel 4.6 and corresponding perf version, percentages of call stacks at deeper levels  do not seem to add up to 100% or parent value (26.97%): example below. I have tried the -percentage flag with both 'absolute' and 'relative' values and they don't seem to change the output at all. Is this a bug or something wrong with my perf flags ?

Commands used:
#perf record  -a -g -c 10000 sleep 10
#perf report -i cpu3.data.old -C 1 --no-children

-   27.48%  fio          [kernel.kallsyms]  [k] __softirqentry_text_start
     __softirqentry_text_start
   - irq_exit
      - 26.97% smp_call_function_single_interrupt
         - call_function_single_interrupt
            + 4.21% __blk_run_queue
            + 4.09% hv_ringbuffer_write
            + 1.83% 0x99c
            + 1.78% __blockdev_direct_IO
            + 0.96% do_blockdev_direct_IO
            + 0.95% generic_make_request
            + 0.86% blk_queue_bio
            + 0.70% iov_iter_get_pages
            + 0.64% md_make_request
            + 0.55% do_io_submit
              0.51% entry_SYSCALL_64_fastpath
      + 0.51% hyperv_vector_handler


Older version: Perf version 4.2 on kernel 4.2 - seems to normalize them to 100%. 
    27.69%  swapper          [kernel.kallsyms]            [k] intel_idle
                    |
                    ---intel_idle
                       |
                       |--99.84%-- cpuidle_enter_state
                       |          cpuidle_enter
                       |          call_cpuidle
                       |          cpu_startup_entry
                       |          |
                       |          |--97.27%-- start_secondary
                       |          |
                       |           --2.73%-- rest_init
                       |                     start_kernel
                       |                     x86_64_start_reservations
                       |                     x86_64_start_kernel
                        --0.16%-- [...]


I am running SLES 12. 

Thanks,
Shiny

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-06-13 11:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-07 19:21 Perf report --percentage Sebastian, Shiny
2016-06-08  7:34 ` Milian Wolff
2016-06-08 16:21   ` Sebastian, Shiny
2016-06-11  8:31     ` Namhyung Kim
2016-06-11 11:53       ` Milian Wolff
2016-06-12 13:55         ` Namhyung Kim
2016-06-13 11:01           ` Milian Wolff
2016-06-09 15:13   ` Arnaldo Carvalho de Melo
2016-06-10  3:14     ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).