Repository navigation
Commit 1b94b3a
tracing: Check state.disabled in synth event trace functions
Since trace_state.disabled is set in __synth_event_trace_start() at
the same time -ENOENT is returned, don't bother returning -ENOENT -
just have callers check trace_state.disabled instead, and avoid the
extra return val munging.
Link: http://lkml.kernel.org/r/87315c3889af870e8370e82b76cf48b426d70130.1585941485.git.zanussi@kernel.org
Suggested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@godmis.org>1 parent fc9d276 commit 1b94b3a
1 file changed
Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
1848 | | - | |
1849 | 1848 | | |
1850 | 1849 | | |
1851 | 1850 | | |
| |||
1907 | 1906 | | |
1908 | 1907 | | |
1909 | 1908 | | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
| 1909 | + | |
1913 | 1910 | | |
1914 | | - | |
1915 | 1911 | | |
1916 | 1912 | | |
1917 | 1913 | | |
| |||
1987 | 1983 | | |
1988 | 1984 | | |
1989 | 1985 | | |
1990 | | - | |
1991 | | - | |
1992 | | - | |
| 1986 | + | |
1993 | 1987 | | |
1994 | | - | |
1995 | 1988 | | |
1996 | 1989 | | |
1997 | 1990 | | |
| |||
2067 | 2060 | | |
2068 | 2061 | | |
2069 | 2062 | | |
2070 | | - | |
2071 | | - | |
2072 | 2063 | | |
2073 | 2064 | | |
2074 | 2065 | | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
2078 | | - | |
2079 | | - | |
| 2066 | + | |
2080 | 2067 | | |
2081 | 2068 | | |
2082 | 2069 | | |
| |||
0 commit comments