Repository navigation
Commit 0c62f6c
tracing: Don't return -EINVAL when tracing soft disabled synth events
There's no reason to return -EINVAL when tracing a synthetic event if
it's soft disabled - treat it the same as if it were hard disabled and
return normally.
Have synth_event_trace() and synth_event_trace_array() just return
normally, and have synth_event_trace_start set the trace state to
disabled and return.
Link: http://lkml.kernel.org/r/df5d02a1625aff97c9866506c5bada6a069982ba.1581374549.git.zanussi@kernel.org
Fixes: 8dcc53a ("tracing: Add synth_event_trace() and related functions")
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>1 parent d090409 commit 0c62f6c
1 file changed
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | | - | |
| 1831 | + | |
| 1832 | + | |
1832 | 1833 | | |
1833 | 1834 | | |
1834 | 1835 | | |
1835 | 1836 | | |
1836 | 1837 | | |
1837 | 1838 | | |
1838 | 1839 | | |
1839 | | - | |
1840 | | - | |
1841 | | - | |
1842 | 1840 | | |
1843 | 1841 | | |
1844 | 1842 | | |
| |||
1918 | 1916 | | |
1919 | 1917 | | |
1920 | 1918 | | |
1921 | | - | |
| 1919 | + | |
| 1920 | + | |
1922 | 1921 | | |
1923 | 1922 | | |
1924 | 1923 | | |
1925 | 1924 | | |
1926 | 1925 | | |
1927 | 1926 | | |
1928 | 1927 | | |
1929 | | - | |
1930 | | - | |
1931 | | - | |
1932 | 1928 | | |
1933 | 1929 | | |
1934 | 1930 | | |
| |||
2017 | 2013 | | |
2018 | 2014 | | |
2019 | 2015 | | |
2020 | | - | |
| 2016 | + | |
| 2017 | + | |
2021 | 2018 | | |
2022 | 2019 | | |
2023 | 2020 | | |
| |||
2026 | 2023 | | |
2027 | 2024 | | |
2028 | 2025 | | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | 2026 | | |
2035 | 2027 | | |
2036 | 2028 | | |
| |||
0 commit comments