[roll] Roll fuchsia [starnix] Implement read(/dev/kmsg) and syslog(SYSLOG_ACTION_READ_ALL)

This is a basic implementation of the syslog syscall as well as the
/dev/kmsg device.

For /dev/kmsg we support both blocking and non-blocking reads.

Pending:

- Should we be using DynamicFileSource for /dev/kmsg ? A general seek
  support isn't appropriate, so I don't think we do. but we do seem
  to need to support the following:
  - SEEK_SET, 0: seek to get the first log
  - SEEK_END, 0: seek to get the last log
  - SEEK_DATA, 0: seek after the last log available after a
    SYSLOG_ACTION_CLEAR was requested. dmesg allows to emit this action.

- Finish necessary syslog(2) action implementations. Mostly READ and
  SIZE_UNREAD. Probably CLEAR too.

- Build /proc/kmsg

The current implementation makes me sad. This can be made more
efficient. To be scheduled. See b/315520045

Original-Bug: b/314198813
Original-Bug: b/315520045
Original-Fixed: b/315387149
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/955692
Original-Revision: 8173fa2284f7bcf139c6914dac0c5c4211303f42
GitOrigin-RevId: b300388bd31470d804f77e55a96d160aa5c797f9
Change-Id: I2205f79225bb7f88a304cbd8b9b86c4ec5b78e7e
1 file changed
tree: a164078c1f5bc0caad7d89fb3b96caf562422028
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
  14. 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 via the IRC channel #fuchsia on Freenode.

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.