docs: ftrace: Correct access mode
authorLeo Yan <leo.yan@linaro.org>
Sat, 8 Oct 2022 08:32:50 +0000 (08:32 +0000)
committerJonathan Corbet <corbet@lwn.net>
Mon, 10 Oct 2022 18:50:53 +0000 (12:50 -0600)
commit9c1ab6d54a2e9e59b8922d12145d895e7f88b62c
treeeea1901186b672c28a27b833671b6c1db897ed46
parent69d517e6e21099f81efbd39e47874649ae575804
docs: ftrace: Correct access mode

The documentation gives an example for opening trace marker with
write-only mode, but the flag WR_ONLY is not defined by glibc.

Use O_WRONLY to replace it.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20221008083250.3160-1-leo.yan@linaro.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/trace/ftrace.rst