I then have an API to fetch it:

https://github.com/dlibenzi/akaros/blob/devarch_msr_perf/tools/profile/perf/perf_core.c#L642

BTW, I need the size as well, because I need to populate an MMP record.
An alternative, more involved, is to stick that info into an ELF section.


On Mon, Dec 14, 2015 at 9:02 AM, Davide Libenzi <[email protected]> wrote:

> On Mon, Dec 14, 2015 at 9:01 AM, Barret Rhoden <[email protected]>
> wrote:
>
>> > In order to do that though, I will need to know, on the Akaros side,
>> > the full path within the build directory, of the akaros kernel ELF
>> > file. A couple of solutions which come to my mind:
>> >
>> > 1) Build system create a magic build info file into KFS
>> > 2) Build info are stuck in a kernel ELF section, retrievable via
>> > system call or #some-dev-file
>>
>> just to be clear, you want a way for a program running on Akaros to
>> know the path to the kernel when it was built,
>> e.g. /full/path/to/obj/kern/akaros-kernel (or perhaps
>> akaros-kernel-64b)?
>>
>
> Yes, I need indeed the -64b. So far, I added Makefile machinery to
> populate $KFS/etc/build.info
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to