File: README.md

package info (click to toggle)
android-platform-tools 34.0.5-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 150,900 kB
  • sloc: cpp: 805,786; java: 293,500; ansic: 128,288; xml: 127,491; python: 41,481; sh: 14,245; javascript: 9,665; cs: 3,846; asm: 2,049; makefile: 1,917; yacc: 440; awk: 368; ruby: 183; sql: 140; perl: 88; lex: 67
file content (48 lines) | stat: -rw-r--r-- 1,850 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Atrace categories

The atrace command (and the perfetto configuration) allow listing **categories**
to select subsets of events to be traced.

Each category can include some userspace events and some ftrace events.

## Vendor categories

It's possible to extend exiting categories (or to define new categories) from
the /vendor partition in order to add hardware specific ftrace events.

Since android 14, if the file `/vendor/etc/atrace/atrace_categories.txt`, atrace
and perfetto will consider the categories and ftrace events listed there.

The file contains a list of categories, and for each category (on the following
lines, indented with one or more spaces of time), a list of ftrace events that
should be enabled when the category is enabled.

Each ftrace event should be a subdirectory in `/sys/kernel/tracing/events/` and
should be of the form `group/event`. Listing a whole group is not supported,
each event needs to be listed explicitly.

It is not an error if an ftrace event is listed in the file, but not present on
the tracing file system.

Example:

```
gfx
 mali/gpu_power_state
 mali/mali_pm_status
thermal_tj
 thermal_exynos/thermal_cpu_pressure
 thermal_exynos/thermal_exynos_arm_update
```

The file lists two categories (`gfx` and `thermal_tj`). When the `gfx` category
is enabled, atrace (or perfetto) will enable
`/sys/kernel/tracing/events/mali/gpu_power_state` and
`/sys/kernel/tracing/events/mali/mali_pm_status`. When the `thermal_tj` category
is enabled, atrace (or perfetto) will enable
`/sys/kernel/tracing/events/thermal_exynos/thermal_cpu_pressure` and
`/sys/kernel/tracing/events/thermal_exynos/thermal_exynos_arm_update`.

Since android 14, if the file `/vendor/etc/atrace/atrace_categories.txt` exists
on the file system, perfetto and atrace do not query the android.hardware.atrace
HAL (which is deprecated).