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

Mali Graphics Debugger with Ubuntu Touch - tiny feature request

Hi there,

Ubuntu Touch is an operating system for mobile devices. It is built on an Android kernel in order to use the closed-source graphics drivers.

It has been released on a Bq Aquaris, which has a Mali chip inside. I am interested in enabling this with the Mali Graphics Debugger tool.

I've managed to get it working (most reliably with an older version of MGD - 2.1.0, am having stability issues on the device when profiling with 3.2.0) but I have hit one minor but irritating issue: the Interceptor is unable to distinguish applications, so I cannot selectively profile just 1 application (say) by using processlist.cfg.


When I say "distinguish applications" I mean this is the output of the interceptor (using adb shell /system/bin/logcat | grep Interceptor):


I/mgd_interceptor(10605): (10608): Interceptor: TRACING: On

I/mgd_interceptor(10605): (10613): Interceptor: Capture mode set to 0

I/mgd_interceptor(10643): (10643): Interceptor: Interceptor loaded for 10643:

I/mgd_interceptor(10643): (10643): Interceptor: Activating tracing

Note that line 3 should have an android application name after the process id - but as Ubuntu touch is not using the android runtime/userland, it seems unable to identify the application name, and so there's no naming system I can use which is compatible with processlist.cfg.

So I get to my feature request: if the interceptor is unable to get an android application name for the traced process, can it fall-back to using the binary process name?

Many thanks for the excellent tool guys!

Kind regards

-Gerry Boland

Parents
  • Hi Gerry,

    We'll take a look at your request, it seems fairly sensible to me.

    MGD is using /proc/self/cmdline to get the name of the process,  is that something that doesn't exist on Ubuntu Touch?

    However, it's worth noting that MGD 3.0.0 onwards can separate processes in the host tool, so it's not as important to limit the items being traced.

    Maybe it's worth telling us about the issues you're having with MGD v3.2.0, so we can help you with that.

    It's also likely that any change we make to add support for binary names will be based off of v3.2.0, so it's probably for the best that we get that working.

    Thanks,

    Jon.

Reply
  • Hi Gerry,

    We'll take a look at your request, it seems fairly sensible to me.

    MGD is using /proc/self/cmdline to get the name of the process,  is that something that doesn't exist on Ubuntu Touch?

    However, it's worth noting that MGD 3.0.0 onwards can separate processes in the host tool, so it's not as important to limit the items being traced.

    Maybe it's worth telling us about the issues you're having with MGD v3.2.0, so we can help you with that.

    It's also likely that any change we make to add support for binary names will be based off of v3.2.0, so it's probably for the best that we get that working.

    Thanks,

    Jon.

Children