This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Gator driver build error

Note: This was originally posted on 29th October 2012 at http://forums.arm.com

Hi,
I'm trying to build Gator-driver with linux kernel 3.0.15  for Mali-400MP profiling.
Here is the command that I used.

==========================================================================
make -C /home/hanback/Downloads/galaxy/kernel/gokhanmoral-siyahkernel3-1aafc91
M=$(pwd) ARCH=arm CROSS_COMPILE=/opt/arm-linux-gnueabi-gcc/bin/arm-linux-gnueabi-
KCFLAGS="-I /home/hanback/Downloads/galaxy/kernel/gokhanmoral-siyahkernel3-1aafc91/drivers/media/video/samsung/mali"  
GATOR_WITH_MALI_SUPPORT=MALI_400 modules
========================================================================


Unfortunately I got an error message.


==============================================================================


/usr/local/DS-5/arm/gator/driver-src/gator-driver/gator_events_mali_400.c: In function "˜start':
/usr/local/DS-5/arm/gator/driver-src/gator-driver/gator_events_mali_400.c:588:5: error: implicit declaration of function "˜register_trace_mali_sw_counters' [-Werror=implicit-function-declaration]
/usr/local/DS-5/arm/gator/driver-src/gator-driver/gator_events_mali_400.c: In function "˜stop':
/usr/local/DS-5/arm/gator/driver-src/gator-driver/gator_events_mali_400.c:617:5: error: implicit declaration of function "˜unregister_trace_mali_sw_counters' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [/usr/local/DS-5/arm/gator/driver-src/gator-driver/gator_events_mali_400.o] Error 1
make: *** [_module_/usr/local/DS-5/arm/gator/driver-src/gator-driver] Error 2

==================================================================================


How can I resolve this problem??


Thank you.

Daisy.
Parents
  • Note: This was originally posted on 16th February 2013 at http://forums.arm.com


    Hi Daisy, thanks for the question.

    From the error message it looks like the gator build is missing the tracepoint functions which would normally be provided by the Mali GPU driver.  From this I conclude that the driver is probably an older version that does not have these tracepoints.

    One thing that you can try is to set the #define GATOR_MALI_INTERFACE_STYLE to a lower value than the default (3) when building the gator driver.  You will see how this is used if you take a look at gator_events_mali_400.c in the gator driver source.  A value of 1 or 2 will cause gator to use an older interface to talk to the Mali driver which may allow you to proceed further.

    Hope this helps,
    Mark Edgeworth




    Hi Mark,

    I know this is an old post, but i had the same error as Daisy, so I used your advice of changing the GATOR_MALI_INTERFACE_STYLE  to 2 instead of 3, and that resulted in successfully building the gator.ko driver with mali support.

    but the problem is when using the streamline to profile the mali-400, i get all zero values for any Mali counter I select !

    Do you have an idea why I`m getting this result ?! do you think it has to do with the version of the Mali driver ?

    Thank you very much,
    Enas
Reply
  • Note: This was originally posted on 16th February 2013 at http://forums.arm.com


    Hi Daisy, thanks for the question.

    From the error message it looks like the gator build is missing the tracepoint functions which would normally be provided by the Mali GPU driver.  From this I conclude that the driver is probably an older version that does not have these tracepoints.

    One thing that you can try is to set the #define GATOR_MALI_INTERFACE_STYLE to a lower value than the default (3) when building the gator driver.  You will see how this is used if you take a look at gator_events_mali_400.c in the gator driver source.  A value of 1 or 2 will cause gator to use an older interface to talk to the Mali driver which may allow you to proceed further.

    Hope this helps,
    Mark Edgeworth




    Hi Mark,

    I know this is an old post, but i had the same error as Daisy, so I used your advice of changing the GATOR_MALI_INTERFACE_STYLE  to 2 instead of 3, and that resulted in successfully building the gator.ko driver with mali support.

    but the problem is when using the streamline to profile the mali-400, i get all zero values for any Mali counter I select !

    Do you have an idea why I`m getting this result ?! do you think it has to do with the version of the Mali driver ?

    Thank you very much,
    Enas
Children
No data