RE: [PATCH perf/core 00/22] perf refcnt debugger API and fixes

平松雅巳 / HIRAMATU，MASAMI
2015-12-11T02:08:24Z

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 983 bytes --]

From: Wangnan (F) [mailto:wangnan0@huawei.com]
>On 2015/12/10 23:12, 'Arnaldo Carvalho de Melo' wrote:
>
>[SNIP]
>> But this requires having these special refcnt__ routines, that will make
>> tools/perf/ code patterns for reference counts look different that the
>> refcount patterns in the kernel :-\
>>
>> And would be a requirement to change the observed workload :-\
>>
>> Is this _strictly_ required?
>
>No. The requirement should be:
>
> 1. The create/get/put/delete functions are non-inline (because dwarf info
> is not as reliable as symbol);
> 2. From their argument list, we can always get the variable we need (the
> pointer of objects, the value of refcnt, etc.)

However, we have to customize it for each application. Perf itself might be OK
but others might have different implementation.

Thanks,

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éÝ¶\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dÊ‡Ú™ë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥