Comments (8)
Hi; its not obvious what error you are experiencing from the above.
Can you describe your problem in a bit more detail please? Have you tried opening the capture file produced at /tmp/gpu.log.apc
? Is it missing some data?
from gator.
thank you for your reply.
I want to get the value of the ARM_Mali-TNOx_GPU_ACTIVE , however , this debug log shows that Unable to connect to Midgard and the GPU data was not collected.
root@e04-dx11:/# ls /tmp/gpu.log.apc/
0000000000 captured.xml counters.xml events.xml
root@e04-dx11:/# cat /tmp/gpu.log.apc/0000000000 | grep GPU
root@e04-dx11:/# cat /tmp/gpu.log.apc/counters.xml | grep GPU
<setup_warnings>[97.6320000] SETUP: logDetectedMaliDevice(mali_userspace/MaliDeviceApi.cpp:87): Mali GPU counters
Successfully probed Mali device /dev/mali0 as Mali-G76 (0x7211 r0p0), 2 L2 Slices, 128-bit Bus, 4 Shader Cores.|[100.1178867] SETUP: MaliHwCntrDriver(mali_userspace/MaliHwCntrDriver.cpp:71): Mali GPU counters
GPU frequency counters not available for GPU # 0.|[100.4518489] SETUP: detect(PrimarySourceProvider.cpp:397): Profiling Source
root@e04-dx11:/# cat /tmp/gpu.log.apc/captured.xml | grep GPU
<counter key="0xe" type="ARM_Mali-TNOx_GPU_ACTIVE" />
from gator.
Code in daemon/MidgardDriver.cpp 113 lines.
OlySocket::connect(MALI_GRAPHICS, MALI_GRAPHICS_SIZE) failed.
I don`t know where the MALI_GRAPHICS server socket created , there is only a client connect failed
from gator.
MidgardDriver.cpp is a red herring; it is not related to GPU counters, it is for collecting the OpenCL timeline from older GPU drivers.
According to captured.xml
the counter you are interested in is being collected.
When you visualize the results of the capture in Streamline U/I, do you see any data for that chart or is it empty?
If not, you have limited the capture to 3 second duration? Are you sure there is some workload that causes activity on the GPU during that time? If there is no GPU activity, the chart should read zero.
from gator.
Gator does not work alone? I want to collect GPU counters to a local file . I have to use Streamline ?
from gator.
Correct; gatord can collect the data into a file (the .apc directory that you have seen), but it's only responsibility is to collect the data from the target device.
Streamline can then be used to process the capture data; you can either visualize it using the U/I, or you can use the Streamline command line to generate various reports (including producing a CSV file containing the list of counter values over time).
For the command line report generation, you may start with https://developer.arm.com/documentation/101816/0708/Use-Streamline-from-the-command-line and specifically https://developer.arm.com/documentation/101816/0708/Use-Streamline-from-the-command-line/Streamline-command-line-options/Report-mode for how to generate a report. Otherwise refer to https://developer.arm.com/documentation/101816/0708/Analyze-your-capture/Timeline-overview which covers some of the U/I.
from gator.
Thanks,let's return to the initial question. I want to collect GPU data to a local file , but I don't find GPU data in this .apc directory. So I think gatord can't collect GPU data alone or there are some errors in gatord. If it's the first case, I will use gatord and Streamline together.
from gator.
I want to collect GPU data to a local file , but I don't find GPU data in this .apc directory.
The .apc directory contains the encoded capture data, but it is not in human readable format; consider it like the output ofperf record
command if you are familiar.
So I think gatord can't collect GPU data alone... I will use gatord and Streamline together.
gatord can collect the data alone, but it doesn't provide any means to visualize the output in human readable format. For that you need Streamline.
from gator.
Related Issues (20)
- report error "Failed setting ABI version ioctl - may be r21p0 or later..." HOT 7
- Gator.ko fails to build HOT 3
- How to get gpu usage and frequency in Android 10+ HOT 1
- License of performance counter XML HOT 2
- Compilation failure with gcc-11 HOT 5
- CPU Clock: Frequency is not work. HOT 24
- How to use Streamline to enable PMU HOT 2
- Streamline counter name duplicate in streamline 2020. HOT 4
- #22322
- #1
- I have build gator and using arm streamline but it is unable to capture GPU events . Is there any specific way to build gator for Mali GPU G52 ? HOT 2
- CMake failed to find MXML HOT 3
- Gator Daemon doesn't compile on recent boost Library HOT 2
- Why do I sometimes get all hw counter delta zero HOT 1
- Where can I find ko related source code? HOT 1
- reserved identifier violation
- When running the gator daemon, an error occurs HOT 5
- Gator Daemon doesn't build with recent protobuf HOT 1
- gatord returns error code 97
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gator.