[PATCH v2 2/2] Adding trace documentation

2018-06-09 Thread Vidushi Vashishth
- Incorporated suggested changes (except making use case example as close to the actual output) - Added trace linker section (to be completed) - Added capture engine section - Added trace buffering and printk trace generation in introduction - Added trace examples section (to be completed) The on

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 10 June 2018 at 04:16, Joel Sherrill wrote: > I suggest this because it is a work around for you. The long term solution > could be to add the symbol to newlib's dummy RTEMS crt0.c, add it to > librtemscpu.a (which is the temporary hack I suggested), add a libgcov.a > implementation or stub to

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
I suggest this because it is a work around for you. The long term solution could be to add the symbol to newlib's dummy RTEMS crt0.c, add it to librtemscpu.a (which is the temporary hack I suggested), add a libgcov.a implementation or stub to RTEMS, or modify GCC. Up until now, we have avoided gcc

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
For now, add a file to libcsupport/src which provides the symbols needed. Make sure things are methods or data as needed. Check GCC source for the prototype. On Sat, Jun 9, 2018, 3:34 PM Vijay Kumar Banerjee wrote: > On 10 June 2018 at 01:28, Joel Sherrill wrote: > >> >> >> On Sat, Jun 9, 2018,

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 10 June 2018 at 01:28, Joel Sherrill wrote: > > > On Sat, Jun 9, 2018, 2:29 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 10 June 2018 at 00:55, Joel Sherrill wrote: >> >>> >>> >>> On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee < >>> vijaykumar9...@gmail.com> wrote:

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
On Sat, Jun 9, 2018, 2:29 PM Vijay Kumar Banerjee wrote: > On 10 June 2018 at 00:55, Joel Sherrill wrote: > >> >> >> On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee < >> vijaykumar9...@gmail.com> wrote: >> >>> On 9 June 2018 at 19:56, Joel Sherrill wrote: >>> On Sat, Jun 9, 201

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 10 June 2018 at 00:55, Joel Sherrill wrote: > > > On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 9 June 2018 at 19:56, Joel Sherrill wrote: >> >>> >>> >>> On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee < >>> vijaykumar9...@gmail.com> wrote: >

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee wrote: > On 9 June 2018 at 19:56, Joel Sherrill wrote: > >> >> >> On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee < >> vijaykumar9...@gmail.com> wrote: >> >>> Hello, >>> >>> I was going through the gcc manual for gcov >>> >>> https://gcc.gnu.or

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 9 June 2018 at 19:56, Joel Sherrill wrote: > > > On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> Hello, >> >> I was going through the gcc manual for gcov >> https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and- >> Optimization >> >>

Re: [GSoC - x86_64 BSP] Using fPIC to compile RTEMS as a shared library

2018-06-09 Thread Joel Sherrill
On Fri, Jun 8, 2018 at 7:45 PM, Chris Johns wrote: > On 9/6/18 10:00 am, Joel Sherrill wrote: > > On Thu, Jun 7, 2018, 9:01 PM Chris Johns > > wrote: > > > and what > > > discussions we need to have to decide between the "bundled > kernel.so approach" > > > (

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee wrote: > Hello, > > I was going through the gcc manual for gcov > > https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and-Optimization > > It mentions that the flag -fprofile-arcs is necessary for generating the > .gcda files. > I

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
Hello, I was going through the gcc manual for gcov https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and-Optimization It mentions that the flag -fprofile-arcs is necessary for generating the .gcda files. I have tried it with a small hello world program to see the reports, and it