10 Commits

Author SHA1 Message Date
Minchan Kim
caf0f59fab dump vendor cma stat
Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: Iaef36594a8ef48b0c85039f348618f021f93e8c2
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 16:36:56 +00:00
Minchan Kim
2a651114fe dump pixel trace into dumpstate_board.txt
Dump cma allocation/deallocation traces into dumpstate_board.txt.

E.g.)

 android.hardwar-3427    [004] ....    15.196059: cma_alloc_start: name=faceauth_tpu count=256 align=8
 android.hardwar-3427    [004] ....    15.196189: cma_alloc_info: name=faceauth_tpu pfn=0x9f4200 count=256 align=8 nr_migrated=0 nr_reclaimed=0 nr_mapped=0 err_iso=0 err_mig=0 err_test=0
    binder:578_1-592     [003] ....    15.209400: cma_alloc_start: name=farawimg count=704 align=4
    binder:578_1-592     [003] ....    15.210344: cma_alloc_info: name=farawimg pfn=0x9e83c0 count=704 align=4 nr_migrated=0 nr_reclaimed=0 nr_mapped=0 err_iso=0 err_mig=0 err_test=0
   binder:1114_4-3420    [001] ....    15.259132: cma_release: name=faceauth_tpu pfn=9f4000 page=000000002e4bd17f count=16
   binder:1114_4-3420    [001] ....    15.259143: cma_release: name=faceauth_tpu pfn=9f4010 page=000000008e379085 count=16
   binder:1114_4-3420    [001] ....    15.259148: cma_release: name=faceauth_tpu pfn=9f4020 page=00000000161dc38b count=16
   binder:1114_4-3420    [001] ....    15.259152: cma_release: name=faceauth_tpu pfn=9f4030 page=000000001d3eb567 count=16
   binder:1114_4-3420    [001] ....    15.259157: cma_release: name=faceauth_tpu pfn=9f4040 page=00000000f7f6dc70 count=16

Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: If64c066eca59d6bba75e0494cd22108d619ad6f8
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 16:36:56 +00:00
Minchan Kim
6c81eeca82 dump cma debugfs into dumpstate_board.txt
CMA debugfs provides how many CMA pages were allocated. It's useful to
detect CMA memory leak.

E.g) --- /sys/kernel/debug/cma/cma-faceauth_tp

Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: Ic050c78ff6455a2960be239732ab6214c3789106
Signed-off-by: Minchan Kim <minchan@google.com>
2023-04-11 16:35:56 +00:00
Adam Shih
78cc2c0eb1 add missing context setting
Bug: 273380509
Test: adb bugreport
Change-Id: Id3df499e86c4455a3a0526cb433d00cbe330725b
2023-03-14 10:50:38 +08:00
Adam Shih
872e477e9f create device frequency dump
Bug: 240530709
Test: adb bugreport
Change-Id: I8db76f46e9e304b1d861c1d6b8ab031611c25e7e
2023-02-15 11:14:37 +08:00
Adam Shih
2349e899e7 create memory dump
Bug: 240530709
Test: adb bugreport
Change-Id: Icdd62b1ff1d7a80d089c795bcf2ec0baa81905a4
2023-02-14 11:24:50 +08:00
Adam Shih
7fbb67dd18 move dump cpu to gs-common
After this patch, cpu and soc dump in total on ROM P45537572(panther) took:
------ Section end: dump_soc ------
Elapsed msec: 12

While previous cpu dump on ROM 9386726(panther) took:
------ Section end: cpu ------
Elapsed msec: 1445

Bug: 240530709
Test: adb bugreport
Change-Id: I33bc01c05a944c4c171c3874d963d02d708fec6c
2022-12-13 14:00:42 +08:00
Adam Shih
4b68f5fe95 create a lib to hold commonly used functions
Bug: 240530709
Test: adb bugreport
Change-Id: Idcdcca968b65d2bd413b219d39fc1104dfc9f3b8
2022-10-18 13:38:13 +08:00
Bob Badour
37b8e22c2e [LSC] Add LOCAL_LICENSE_KINDS to device/google/gs-common
Added SPDX-license-identifier-Apache-2.0 to:
  ramdump/Android.bp
  soc/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Id2b08f9edfdc7d9828f28739c28b23c318f352a2
2022-10-06 13:32:35 -07:00
Adam Shih
cf7266088f move soc dump to gs-common
Bug: 248428203
Test: adb bugreport
Change-Id: Iaf8b48d5062536bbece1562618f965947dea22f0
2022-10-04 13:36:07 +08:00