[roll] Roll fuchsia Reland "[starnix][cgroup] Implement process operations in cgroups"

This reverts commit acff2818609015f14d38c6c0041bcd1d5653605f.

Reason for revert:
  Fix flakes by eliminating terminating processes from the cgroup.
  This was previously proposed in https://fxrev.dev/1178714.

Original change's description:
> Revert "[starnix][cgroup] Implement process operations in cgroups"
>
> This reverts commit c1f5f4166832e94257161e42f0948d8a654a3d3e.
>
> Reason for revert: cgroup_freezer_test failed on CI
>
> Original change's description:
> > [starnix][cgroup] Implement process operations in cgroups
> >
> > Cgroups now keep WeakRef<ThreadGroup> instead of WeakRef<Task>, as
> > operations on cgroup.procs apply to processes, instead of threads.
> > Updated Freezer to freeze all tasks of the thread group.
> >
> > Cgroup can have thread granularity if cgroup.type is threaded mode, but
> > that is not supported right now.
> >
> > Now we can:
> > - Root cgroup can list processes that belong to it, by querying the
> >   kernel for all processes and remove processes that belong to a child
> >   cgroup.
> > - Processes can be removed from a non-root cgroup, by adding it to the
> >   root cgroup
> > - Processes can be moved from one non-root cgroup to another
> >
> > Test: build and run syscall test on emulator and as host test
> > Original-Bug: 377429221
> > Change-Id: Ic9a2ee93b4e30b173ec6ad3543b6116d61cae874
> > Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1171473
> > Commit-Queue: David Song <wintermelons@google.com>
> > Reviewed-by: Guocheng Wei <guochengwei@google.com>
>
> Original-Bug: 377429221
> Change-Id: Ieaf9121eb01e1a5f3f0fb176fc0c6f8ee78ebc92
> Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1179373
> Reviewed-by: RubberStamper 🤖 <android-build-ayeaye@system.gserviceaccount.com>
> Commit-Queue: Yilong Li <liyl@google.com>

Original-Bug: 377429221
Multiply: cgroup_freezer_test.cm: 100
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1179952
Original-Revision: f5383d32745f9d5b8c384e008d4b294ae7ebb992
GitOrigin-RevId: 1a7db3525a83c3ae71fc55de68a06d0e3c6cf11a
Change-Id: If91f3feb21e103e6697cb368d1e992743e05af5e
1 file changed
tree: e15a3e09f0abe7d9c61cfef1f855fa8e840fca01
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.