[roll] Roll fuchsia [starnix][tracing] TraceMarkerFile: fix write() return value

In some cases, `TraceMarkerFile::write()` needs to truncate
the data sent by the writer.

However, in such cases, the function should still tell the
writer that all the bytes were written.

Otherwise, for example, the writer might retry.

Test: manual (see below)

Manual test
-----------
sorrel:/sys/kernel/tracing # echo 1 > tracing_on
sorrel:/sys/kernel/tracing # cat tracing_on
1
sorrel:/sys/kernel/tracing # echo 'hello world' > trace_marker
sorrel:/sys/kernel/tracing #

Previously, the `echo` command would hang. Or, more specifically,
the `echo` command would sit in a tight loop, trying to write
out the last byte.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1445906
Original-Revision: 1d655109dd3f817bec59ecf3392c5672f524f1ed
GitOrigin-RevId: 79e467d706d589a05936be4c9102376fdec507fa
Change-Id: I73f943c30d987f2d1e4e2946ab30155e554b8659
1 file changed
tree: fb6c8a94b1787c69a9a8811021a6a5c5a93561ef
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
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.