aml_hef_351314220 (12777567,com.google.android.go.healthfitness,com.google.android.healthfitness)
Snap for 12310482 from c6427b61ead131a449fdebf0c3ba74cf3b4a8c4e to mainline-healthfitness-release

Change-Id: I7242788d03ed2da93cf340ded26581d1ac78e3ee
tree: 4e746c94c032e41dec82792e522030bcb78d2d0c
  1. cmake/
  2. doc/
  3. fuzz/
  4. test_cases/
  5. testdata/
  6. abigail_reader.cc
  7. abigail_reader.h
  8. abigail_reader_test.cc
  9. Android.bp
  10. btf_reader.cc
  11. btf_reader.h
  12. catch.cc
  13. CMakeLists.txt
  14. comparison.cc
  15. comparison.h
  16. CONTRIBUTING.md
  17. deduplication.cc
  18. deduplication.h
  19. Dockerfile
  20. dwarf_processor.cc
  21. dwarf_processor.h
  22. dwarf_wrappers.cc
  23. dwarf_wrappers.h
  24. elf_dwarf_handle.cc
  25. elf_dwarf_handle.h
  26. elf_loader.cc
  27. elf_loader.h
  28. elf_reader.cc
  29. elf_reader.h
  30. elf_reader_test.cc
  31. equality.h
  32. equality_cache.h
  33. error.h
  34. error_test.cc
  35. fidelity.cc
  36. fidelity.h
  37. file_descriptor.cc
  38. file_descriptor.h
  39. file_descriptor_test.cc
  40. filter.cc
  41. filter.h
  42. filter_test.cc
  43. fingerprint.cc
  44. fingerprint.h
  45. graph.cc
  46. graph.h
  47. hashing.h
  48. hex.h
  49. hex_test.cc
  50. input.cc
  51. input.h
  52. LICENSE
  53. METADATA
  54. MODULE_LICENSE_LLVM
  55. naming.cc
  56. naming.h
  57. order.h
  58. order_test.cc
  59. OWNERS
  60. post_processing.cc
  61. post_processing.h
  62. proto_reader.cc
  63. proto_reader.h
  64. proto_writer.cc
  65. proto_writer.h
  66. reader_options.h
  67. README.md
  68. reporting.cc
  69. reporting.h
  70. reporting_test.cc
  71. runtime.cc
  72. runtime.h
  73. runtime_test.cc
  74. scc.h
  75. scc_test.cc
  76. scope.h
  77. stable_hash.cc
  78. stable_hash.h
  79. stg.cc
  80. stg.proto
  81. stgdiff.cc
  82. stgdiff_test.cc
  83. substitution.h
  84. type_normalisation.cc
  85. type_normalisation.h
  86. type_resolution.cc
  87. type_resolution.h
  88. unification.cc
  89. unification.h
README.md

Symbol-Type Graph (STG)

The STG (symbol-type graph) is an ABI representation and this project contains tools for the creation and comparison of such representations.

The ABI extraction tool, stg, emits a native ABI format. Parsers exist for libabigail's XML format, BTF and ELF / DWARF.

The ABI diff tool, stgdiff, supports multiple reporting options.

STG has a versioned native file format. Older formats can be read and rewritten as the latest.

NOTE: STG is under active developement. Tool arguments and behaviour are subject to change.

Getting STG

Distributions

We intend to package STG for major distributions. Currently we have packages as follows:

DistributionPackage
Arch Linux (AUR)stg-git

Source Code

This source code is available at https://android.googlesource.com/platform/external/stg/.

Building from Source

Instructions are included for local and Docker builds.

Dependencies

STG is written in C++20. It is known to compile with GCC 11, Clang 15 or later versions. Mininum requirements for a local build are:

DependencyDebianRedHatVersion
buildcmakecmake3.14
ELF, BTFlibelf-develfutils-devel0.189
DWARFlibdw-develfutils-devel0.189
XMLlibxml2-devlibxml2-devel2.9
BTFlinux-libc-devkernel-headers5.19
native formatlibprotobuf-devprotobuf-devel3.19
native formatprotobuf-compilerprotobuf-compiler3.19
allocator[^1]libjemalloc-devjemalloc-devel5
catch2[^2]catch2catch2-devel2 (only)

[^1]: jemalloc is optional, but will likely improve performance. [^2]: catch2 is optional, but required to build the test suite.

Local Build

Build STG using CMake as follows:

$ mkdir build && cd build
$ cmake ..
$ cmake --build . --parallel

Run the STG unit test suite:

$ ctest

Docker Build

A Dockerfile is provided to build a container with the STG tools:

$ docker build -t stg .

And then enter the container:

$ docker run -it stg

Note that the Dockerfile provides only a production image. To use Docker as a development environment, you can comment out everything after the line # second stage.

After that you may bind your development code to the container:

$ docker run -it $PWD:/src -it stg

The source code is added to /src, so when your code is bound you can edit on your host and re-compile in the container.

Contributions

See CONTRIBUTING.md for details.

Contact Information

Please send feedback, questions and bug reports to kernel-team@android.com.