Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1685006
| From | "Jin, Yao" <yao.jin@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7 1/7] perf/core: Define the common branch type classification |
| Date | 2017-07-11 14:30 +0200 |
| Message-ID | <u22sF-2cL-3@gated-at.bofh.it> (permalink) |
| References | <u1XsZ-7CX-3@gated-at.bofh.it> <u1XsZ-7CX-11@gated-at.bofh.it> <u229k-26d-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 7/11/2017 8:06 PM, Peter Zijlstra wrote:
> On Tue, Jul 11, 2017 at 11:00:57PM +0800, Jin Yao wrote:
>> PERF_BR_NONE : unknown
> I would suggest PERF_BR_UNKNOWN or PERF_BR_MISC, since PERF_BR_NONE
> reads like it wasn't a branch at all.
OK, I will change it to PERF_BR_UNKNOWN.
>> PERF_BR_COND :conditional
>> PERF_BR_UNCOND : unconditional
>> PERF_BR_IND : indirect
>> PERF_BR_CALL : function call
>> PERF_BR_IND_CALL : indirect function call
>> PERF_BR_RET : function return
>> PERF_BR_SYSCALL : syscall
>> PERF_BR_SYSRET : syscall return
>> PERF_BR_COND_CALL : conditional function call
>> PERF_BR_COND_RET : conditional function return
>>
>> The patch also adds a new field type (4 bits) in perf_branch_entry
>> to record the branch type (reserve 5 for future branch types)
> What's up with that 5 ? I can't see anything like that in the patch
> itself:
Sorry, I don't say this clearly.
We has defined 11 branch types (from PERF_BR_UNKNOWN to
PERF_BR_COND_RET), so we can define 5 new types in future.
Thanks
Jin Yao
>> @@ -1024,7 +1048,8 @@ struct perf_branch_entry {
>> in_tx:1, /* in transaction */
>> abort:1, /* transaction abort */
>> cycles:16, /* cycle count to last branch */
>> - reserved:44;
>> + type:4, /* branch type */
>> + reserved:40;
>> };
>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v7 1/7] perf/core: Define the common branch type classification Jin Yao <yao.jin@linux.intel.com> - 2017-07-11 09:10 +0200
Re: [PATCH v7 1/7] perf/core: Define the common branch type classification Peter Zijlstra <peterz@infradead.org> - 2017-07-11 14:10 +0200
Re: [PATCH v7 1/7] perf/core: Define the common branch type classification "Jin, Yao" <yao.jin@linux.intel.com> - 2017-07-11 14:30 +0200
Re: [PATCH v7 1/7] perf/core: Define the common branch type classification Michael Ellerman <mpe@ellerman.id.au> - 2017-07-12 12:50 +0200
csiph-web