diff for duplicates of <20160922194252.GA2441@redhat.com> diff --git a/a/1.txt b/N1/1.txt index 67452ee..6b80144 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,7 +1,7 @@ Em Thu, Sep 22, 2016 at 01:23:04PM -0500, Paul Clarke escreveu: > On 09/22/2016 12:50 PM, Vineet Gupta wrote: > >On 09/22/2016 12:56 AM, Peter Zijlstra wrote: -> >>On Wed, Sep 21, 2016 at 07:43:28PM -0500, Paul Clarke wrote: +> >>On Wed, Sep 21, 2016@07:43:28PM -0500, Paul Clarke wrote: > >>>On 09/20/2016 03:56 PM, Vineet Gupta wrote: > >>>>On 09/01/2016 01:33 AM, Peter Zijlstra wrote: > >>>>>>- is that what perf event grouping is ? @@ -61,7 +61,7 @@ So, getting this machine as an example: [ 0.067781] ... event mask: 000000070000000f [ 0.068694] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter. -[root@zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses}' ls a +[root at zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses}' ls a ls: cannot access 'a': No such file or directory Performance counter stats for 'ls a': @@ -73,7 +73,7 @@ ls: cannot access 'a': No such file or directory 0.003624967 seconds time elapsed -[root@zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a +[root at zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a ls: cannot access 'a': No such file or directory Performance counter stats for 'ls a': @@ -86,13 +86,13 @@ ls: cannot access 'a': No such file or directory 0.003659678 seconds time elapsed -[root@zoo ~]# +[root at zoo ~]# That was as a group, i.e. those {} enclosing it, if you run it with -vv, among other things you'll see the "group_fd" parameter to the sys_perf_event_open syscall: -[root@zoo ~]# perf stat -vv -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a +[root at zoo ~]# perf stat -vv -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a sys_perf_event_open: pid 28581 cpu -1 group_fd -1 flags 0x8 sys_perf_event_open: pid 28581 cpu -1 group_fd 3 flags 0x8 sys_perf_event_open: pid 28581 cpu -1 group_fd 3 flags 0x8 @@ -110,7 +110,7 @@ ls: cannot access 'a': No such file or directory 0.002883209 seconds time elapsed -[root@zoo ~]# +[root at zoo ~]# So, the first one passes -1, to create the group, the fd it returns is '3', that is used as group_fd for the other events in that group. @@ -124,7 +124,7 @@ If we remove that {}, i.e. say, no need to enable all those counters _at the same time_, multiplex them _in the same task_ to be able to measure them all to some degree, it "works": -[root@zoo ~]# perf stat -vv -e 'branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles' ls a +[root at zoo ~]# perf stat -vv -e 'branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles' ls a perf_event_attr: (For the first event:) config 0x4 read_format TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING @@ -144,7 +144,7 @@ sys_perf_event_open: pid 28594 cpu -1 group_fd -1 flags 0x8 0.003026840 seconds time elapsed -[root@zoo ~]# +[root at zoo ~]# See the read_format? Those percentages? the group_fd = -1? @@ -158,13 +158,13 @@ Its this part of 'man perf_event_open': The group_fd argument allows event groups to be created. An event group has one event which is the group leader. The leader is created first, with group_fd = -1. The rest of the group members are created with subsequent -perf_event_open() calls with group_fd being set to the file descrip‐ tor of +perf_event_open() calls with group_fd being set to the file descrip? tor of the group leader. (A single event on its own is created with group_fd = -1 and is considered to be a group with only 1 member.) An event group is scheduled onto the CPU as a unit: it will be put onto the CPU only if all of the events in the group can be put onto the CPU. This means that the values of the -member events can be meaningfully compared—added, divided (to get ratios), -and so on—with each other, since they have counted events for the same set of +member events can be meaningfully compared?added, divided (to get ratios), +and so on?with each other, since they have counted events for the same set of executed instructions. - Arnaldo @@ -185,8 +185,3 @@ There is multiplexing if group_fd is set to -1 in all events. Not if group_fd is set to a group leader. > PC - -_______________________________________________ -linux-snps-arc mailing list -linux-snps-arc@lists.infradead.org -http://lists.infradead.org/mailman/listinfo/linux-snps-arc diff --git a/a/content_digest b/N1/content_digest index d06bc66..c75ce54 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -7,24 +7,16 @@ "ref\020160922075603.GW5008@twins.programming.kicks-ass.net\0" "ref\0b15fc87b-c846-fdb5-ef6a-48fc2d797917@synopsys.com\0" "ref\04351119f-b212-5039-9a3d-f568f6893b36@us.ibm.com\0" - "From\0Arnaldo Carvalho de Melo <acme@redhat.com>\0" - "Subject\0Re: perf event grouping for dummies (was Re: [PATCH] arc: perf: Enable generic \"cache-references\" and \"cache-misses\" events)\0" + "From\0acme@redhat.com (Arnaldo Carvalho de Melo)\0" + "Subject\0perf event grouping for dummies (was Re: [PATCH] arc: perf: Enable generic \"cache-references\" and \"cache-misses\" events)\0" "Date\0Thu, 22 Sep 2016 16:42:52 -0300\0" - "To\0Paul Clarke <pc@us.ibm.com>\0" - "Cc\0Peter Zijlstra <peterz@infradead.org>" - Vineet Gupta <Vineet.Gupta1@synopsys.com> - Alexey Brodkin <Alexey.Brodkin@synopsys.com> - Will Deacon <Will.Deacon@arm.com> - linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> - linux-perf-users@vger.kernel.org <linux-perf-users@vger.kernel.org> - linux-snps-arc@lists.infradead.org <linux-snps-arc@lists.infradead.org> - " Jiri Olsa <jolsa@redhat.com>\0" + "To\0linux-snps-arc@lists.infradead.org\0" "\00:1\0" "b\0" "Em Thu, Sep 22, 2016 at 01:23:04PM -0500, Paul Clarke escreveu:\n" "> On 09/22/2016 12:50 PM, Vineet Gupta wrote:\n" "> >On 09/22/2016 12:56 AM, Peter Zijlstra wrote:\n" - "> >>On Wed, Sep 21, 2016 at 07:43:28PM -0500, Paul Clarke wrote:\n" + "> >>On Wed, Sep 21, 2016@07:43:28PM -0500, Paul Clarke wrote:\n" "> >>>On 09/20/2016 03:56 PM, Vineet Gupta wrote:\n" "> >>>>On 09/01/2016 01:33 AM, Peter Zijlstra wrote:\n" "> >>>>>>- is that what perf event grouping is ?\n" @@ -84,7 +76,7 @@ "[ 0.067781] ... event mask: 000000070000000f\n" "[ 0.068694] NMI watchdog: enabled on all CPUs, permanently consumes one hw-PMU counter.\n" "\n" - "[root@zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses}' ls a\n" + "[root at zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses}' ls a\n" "ls: cannot access 'a': No such file or directory\n" "\n" " Performance counter stats for 'ls a':\n" @@ -96,7 +88,7 @@ "\n" " 0.003624967 seconds time elapsed\n" "\n" - "[root@zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a\n" + "[root at zoo ~]# perf stat -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a\n" "ls: cannot access 'a': No such file or directory\n" "\n" " Performance counter stats for 'ls a':\n" @@ -109,13 +101,13 @@ "\n" " 0.003659678 seconds time elapsed\n" "\n" - "[root@zoo ~]#\n" + "[root at zoo ~]#\n" "\n" "That was as a group, i.e. those {} enclosing it, if you run it with -vv, among\n" "other things you'll see the \"group_fd\" parameter to the sys_perf_event_open\n" "syscall:\n" "\n" - "[root@zoo ~]# perf stat -vv -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a\n" + "[root at zoo ~]# perf stat -vv -e '{branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles}' ls a\n" "sys_perf_event_open: pid 28581 cpu -1 group_fd -1 flags 0x8\n" "sys_perf_event_open: pid 28581 cpu -1 group_fd 3 flags 0x8\n" "sys_perf_event_open: pid 28581 cpu -1 group_fd 3 flags 0x8\n" @@ -133,7 +125,7 @@ "\n" " 0.002883209 seconds time elapsed\n" "\n" - "[root@zoo ~]#\n" + "[root at zoo ~]#\n" "\n" "So, the first one passes -1, to create the group, the fd it returns is '3',\n" "that is used as group_fd for the other events in that group.\n" @@ -147,7 +139,7 @@ "same time_, multiplex them _in the same task_ to be able to measure them all\n" "to some degree, it \"works\":\n" "\n" - "[root@zoo ~]# perf stat -vv -e 'branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles' ls a\n" + "[root at zoo ~]# perf stat -vv -e 'branch-instructions,branch-misses,bus-cycles,cache-misses,cpu-cycles' ls a\n" "perf_event_attr: (For the first event:)\n" " config 0x4\n" " read_format TOTAL_TIME_ENABLED|TOTAL_TIME_RUNNING\n" @@ -167,7 +159,7 @@ "\n" " 0.003026840 seconds time elapsed\n" "\n" - "[root@zoo ~]#\n" + "[root at zoo ~]#\n" "\n" "See the read_format? Those percentages? the group_fd = -1?\n" "\n" @@ -181,13 +173,13 @@ " The group_fd argument allows event groups to be created. An event group\n" "has one event which is the group leader. The leader is created first, with\n" "group_fd = -1. The rest of the group members are created with subsequent\n" - "perf_event_open() calls with group_fd being set to the file descrip\342\200\220 tor of\n" + "perf_event_open() calls with group_fd being set to the file descrip? tor of\n" "the group leader. (A single event on its own is created with group_fd = -1 and\n" "is considered to be a group with only 1 member.) An event group is scheduled\n" "onto the CPU as a unit: it will be put onto the CPU only if all of the events\n" "in the group can be put onto the CPU. This means that the values of the\n" - "member events can be meaningfully compared\342\200\224added, divided (to get ratios),\n" - "and so on\342\200\224with each other, since they have counted events for the same set of\n" + "member events can be meaningfully compared?added, divided (to get ratios),\n" + "and so on?with each other, since they have counted events for the same set of\n" "executed instructions.\n" "\n" "- Arnaldo\n" @@ -207,11 +199,6 @@ "\n" "Not if group_fd is set to a group leader.\n" " \n" - "> PC\n" - "\n" - "_______________________________________________\n" - "linux-snps-arc mailing list\n" - "linux-snps-arc@lists.infradead.org\n" - http://lists.infradead.org/mailman/listinfo/linux-snps-arc + > PC -fde19e49b8dad1b21a61e6b817e3e6e803befcaa2cc3a487aaf67a705a38787d +087ee86c031a9029f57ea09573d18264bcd22896fcc20cb078c25ce48fb3f6aa
diff --git a/a/1.txt b/N2/1.txt index 67452ee..569b997 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -185,8 +185,3 @@ There is multiplexing if group_fd is set to -1 in all events. Not if group_fd is set to a group leader. > PC - -_______________________________________________ -linux-snps-arc mailing list -linux-snps-arc@lists.infradead.org -http://lists.infradead.org/mailman/listinfo/linux-snps-arc diff --git a/a/content_digest b/N2/content_digest index d06bc66..462a6e3 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -11,8 +11,8 @@ "Subject\0Re: perf event grouping for dummies (was Re: [PATCH] arc: perf: Enable generic \"cache-references\" and \"cache-misses\" events)\0" "Date\0Thu, 22 Sep 2016 16:42:52 -0300\0" "To\0Paul Clarke <pc@us.ibm.com>\0" - "Cc\0Peter Zijlstra <peterz@infradead.org>" - Vineet Gupta <Vineet.Gupta1@synopsys.com> + "Cc\0Vineet Gupta <Vineet.Gupta1@synopsys.com>" + Peter Zijlstra <peterz@infradead.org> Alexey Brodkin <Alexey.Brodkin@synopsys.com> Will Deacon <Will.Deacon@arm.com> linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> @@ -207,11 +207,6 @@ "\n" "Not if group_fd is set to a group leader.\n" " \n" - "> PC\n" - "\n" - "_______________________________________________\n" - "linux-snps-arc mailing list\n" - "linux-snps-arc@lists.infradead.org\n" - http://lists.infradead.org/mailman/listinfo/linux-snps-arc + > PC -fde19e49b8dad1b21a61e6b817e3e6e803befcaa2cc3a487aaf67a705a38787d +21229cfd9df4e524e11e6a7c1d6e70b282612b1650e796f9023b81ff001b37c8
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.