tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding new feature - Kcov



On 12.12.2018 16:02, Mouse wrote:
>> kcov returns kernel pointers, 32-bit program executed by 64-bit
>> kernel cannot store them in 32-bit integers.
> 
> Why would you store pointers in integers at all?  Surely the right
> thing to do is store them as void * (for data pointers) or void (*)()
> (for function pointers)...?

kcov utilizes compiler instrumentation that uses low-lever, below the C
and C++ language (or runtime), thus here it doesn't matter what's the
exact storage type of a pointer. For simplicity of a kCov runtime we
store the pointers as integers.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index