Commit e25e43a
tracing: Fix complicated dependency of CONFIG_TRACER_MAX_TRACE
Both CONFIG_OSNOISE_TRACER and CONFIG_HWLAT_TRACER partially enables the
CONFIG_TRACER_MAX_TRACE code, but that is complicated and has
introduced a bug; It declares tracing_max_lat_fops data structure outside
of #ifdefs, but since it is defined only when CONFIG_TRACER_MAX_TRACE=y
or CONFIG_HWLAT_TRACER=y, if only CONFIG_OSNOISE_TRACER=y, that
declaration comes to a definition(!).
To fix this issue, and do not repeat the similar problem, makes
CONFIG_OSNOISE_TRACER and CONFIG_HWLAT_TRACER enables the
CONFIG_TRACER_MAX_TRACE always. It has there benefits;
- Fix the tracing_max_lat_fops bug
- Simplify the #ifdefs
- CONFIG_TRACER_MAX_TRACE code is fully enabled, or not.
Link: https://lore.kernel.org/linux-trace-kernel/167033628155.4111793.12185405690820208159.stgit@devnote3
Fixes: 424b650 ("tracing: Fix missing osnoise tracer on max_latency")
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: [email protected]
Reported-by: David Howells <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Link: https://lore.kernel.org/all/166992525941.1716618.13740663757583361463.stgit@warthog.procyon.org.uk/ (original thread and v1)
Link: https://lore.kernel.org/all/[email protected]/T/#u (v1 error report)
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 575b76c commit e25e43a
3 files changed
+18
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| |||
410 | 411 | | |
411 | 412 | | |
412 | 413 | | |
| 414 | + | |
413 | 415 | | |
414 | 416 | | |
415 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
| 1424 | + | |
1424 | 1425 | | |
1425 | 1426 | | |
1426 | 1427 | | |
| |||
1692 | 1693 | | |
1693 | 1694 | | |
1694 | 1695 | | |
| 1696 | + | |
| 1697 | + | |
1695 | 1698 | | |
1696 | 1699 | | |
1697 | 1700 | | |
| |||
1748 | 1751 | | |
1749 | 1752 | | |
1750 | 1753 | | |
1751 | | - | |
1752 | | - | |
| 1754 | + | |
1753 | 1755 | | |
1754 | 1756 | | |
1755 | 1757 | | |
1756 | 1758 | | |
1757 | 1759 | | |
1758 | | - | |
1759 | | - | |
1760 | 1760 | | |
1761 | 1761 | | |
1762 | | - | |
1763 | 1762 | | |
1764 | 1763 | | |
1765 | 1764 | | |
| |||
1834 | 1833 | | |
1835 | 1834 | | |
1836 | 1835 | | |
1837 | | - | |
1838 | | - | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
1839 | 1840 | | |
1840 | 1841 | | |
1841 | 1842 | | |
1842 | 1843 | | |
1843 | 1844 | | |
1844 | | - | |
1845 | 1845 | | |
1846 | 1846 | | |
1847 | 1847 | | |
| |||
1888 | 1888 | | |
1889 | 1889 | | |
1890 | 1890 | | |
| 1891 | + | |
1891 | 1892 | | |
1892 | 1893 | | |
1893 | 1894 | | |
| |||
6577 | 6578 | | |
6578 | 6579 | | |
6579 | 6580 | | |
6580 | | - | |
| 6581 | + | |
6581 | 6582 | | |
6582 | 6583 | | |
6583 | 6584 | | |
| |||
7592 | 7593 | | |
7593 | 7594 | | |
7594 | 7595 | | |
7595 | | - | |
| 7596 | + | |
7596 | 7597 | | |
7597 | 7598 | | |
7598 | 7599 | | |
| |||
9606 | 9607 | | |
9607 | 9608 | | |
9608 | 9609 | | |
| 9610 | + | |
9609 | 9611 | | |
| 9612 | + | |
9610 | 9613 | | |
9611 | 9614 | | |
9612 | 9615 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
312 | | - | |
| 311 | + | |
313 | 312 | | |
314 | 313 | | |
315 | 314 | | |
| |||
688 | 687 | | |
689 | 688 | | |
690 | 689 | | |
691 | | - | |
692 | 690 | | |
693 | | - | |
694 | | - | |
| 691 | + | |
695 | 692 | | |
696 | 693 | | |
| 694 | + | |
697 | 695 | | |
698 | 696 | | |
699 | 697 | | |
| |||
0 commit comments