Re: CPU Usage
I basically just copied and renamed the existing function that prints to the console, but changed it to return a struct. I couldn’t personally give it back. I thought my customer at the time would roll it back in. Looks like that never happened. Sorry. > On Jan 13, 2023, at 17:05, Joel Sherrill wrote: > > > That's the right answer Karel. > > I will add that we have been open to the addition of an API to obtain this > information if someone could propose one. > > This is an area where not knowing what users would like to have has been a > hurdle. > >> On Fri, Jan 13, 2023 at 3:42 PM Karel Gardas wrote: >> >> I would guess it is, but judge yourself by going to the RTEMS source >> code[*] and grepping for "rtems_cpu_usage". >> >> Cheers, >> Karel >> >> [*] used few months old trunk here. >> >> On 1/13/23 21:48, Molock, Dwaine S. (GSFC-5820) wrote: >> > Hello, >> > >> > Is there a RTEMS API available to obtain the current CPU usage or >> > anything similar to the “/proc/stat” file in Linux that can be read to >> > obtain this information? >> > >> > Thanks, >> > >> > Dwaine >> > >> > >> > ___ >> > users mailing list >> > users@rtems.org >> > http://lists.rtems.org/mailman/listinfo/users >> >> ___ >> users mailing list >> users@rtems.org >> http://lists.rtems.org/mailman/listinfo/users > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: CPU Usage
That's the right answer Karel. I will add that we have been open to the addition of an API to obtain this information if someone could propose one. This is an area where not knowing what users would like to have has been a hurdle. On Fri, Jan 13, 2023 at 3:42 PM Karel Gardas wrote: > > I would guess it is, but judge yourself by going to the RTEMS source > code[*] and grepping for "rtems_cpu_usage". > > Cheers, > Karel > > [*] used few months old trunk here. > > On 1/13/23 21:48, Molock, Dwaine S. (GSFC-5820) wrote: > > Hello, > > > > Is there a RTEMS API available to obtain the current CPU usage or > > anything similar to the “/proc/stat” file in Linux that can be read to > > obtain this information? > > > > Thanks, > > > > Dwaine > > > > > > ___ > > users mailing list > > users@rtems.org > > http://lists.rtems.org/mailman/listinfo/users > > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: CPU Usage
I would guess it is, but judge yourself by going to the RTEMS source code[*] and grepping for "rtems_cpu_usage". Cheers, Karel [*] used few months old trunk here. On 1/13/23 21:48, Molock, Dwaine S. (GSFC-5820) wrote: Hello, Is there a RTEMS API available to obtain the current CPU usage or anything similar to the “/proc/stat” file in Linux that can be read to obtain this information? Thanks, Dwaine ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Dynamic loader usage in RTEMS 5.1
I'm trying to understand how to build/link code to use the dynamic loader in RTEMS v5.1. I'm using https://docs.rtems.org/releases/rtems-5.1/user/exe/loader.html as a reference. My codebase has a core object and several components that will be loaded at boot time. I do the 2-pass linking step with the embedded global symbol table on my core object, and then run rtems-syms to generate "*-sym.o" objects for my runtime files (but do -not- send them through a second linking pass). Now I have a core object and several "fooX.o" and "fooX-sym.o" files.. what do I do from here? Are the fooX-sym.o files supposed to be linked into the core object somehow? I'm sure I'm missing an obvious step. Any pointers? Thanks! john.c -- John Clemens ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
CPU Usage
Hello, Is there a RTEMS API available to obtain the current CPU usage or anything similar to the “/proc/stat” file in Linux that can be read to obtain this information? Thanks, Dwaine ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users