Perf events for GPU drivers - 2011.09

Registered by Jesse Barker

As perf supports system-wide events (soon), it would be really useful to have the kernel device drivers for GPUs generate perf events to improve profiling.

Blueprint information

Status:
Complete
Approver:
Jesse Barker
Priority:
Medium
Drafter:
Chunsang Jeong
Direction:
Needs approval
Assignee:
Chunsang Jeong
Definition:
Drafting
Series goal:
Accepted for 2011.11
Implementation:
Implemented
Milestone target:
milestone icon 2011.09
Started by
Jesse Barker
Completed by
Jesse Barker

Related branches

Sprints

Whiteboard

[ChunsangJeong Aug 30 2011]
Mali r2p2-03rel makes a log for every GP and PPs' timing information, which is saved as a "state_dump" file under /dev/mali with turuning on MALI_STATE_TRACKING on compiling. Defining PMU will be filtering and parsing the information as user defined, while reading the raw information would hook perf information at the first step.
(mali_kernel_sysfs.c, "mali_core_renderunit_dump_state" in mali_kernel_rendercore.c )

Headline: Hook performance events from GPU

Acceptance: User can get performance events from GPU (Mali) by reading dumped file with enabling STATE_TRACKING.

(?)

Work Items

Work items:
Investigate newly added profiling data structure in Mali kernel driver: DONE
Investigate needed interface on user space for profiling: DONE
Add PMU struct definition to Mali device driver to hook into perf: DONE
Investigate necessary modifications to perf user-space tool: DONE

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.