Commit 0486a1f
tracing: Disable snapshot buffer when stopping instance tracers
commit b538bf7 upstream.
It use to be that only the top level instance had a snapshot buffer (for
latency tracers like wakeup and irqsoff). When stopping a tracer in an
instance would not disable the snapshot buffer. This could have some
unintended consequences if the irqsoff tracer is enabled.
Consolidate the tracing_start/stop() with tracing_start/stop_tr() so that
all instances behave the same. The tracing_start/stop() functions will
just call their respective tracing_start/stop_tr() with the global_array
passed in.
Link: https://lkml.kernel.org/r/20231205220011.041220035@goodmis.org
Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: 6d9b3fa ("tracing: Move tracing_max_latency into trace_array")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 12c48e8 commit 0486a1f
1 file changed
+34
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
2362 | | - | |
2363 | | - | |
2364 | | - | |
2365 | | - | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
| 2362 | + | |
2369 | 2363 | | |
2370 | 2364 | | |
2371 | 2365 | | |
2372 | 2366 | | |
2373 | 2367 | | |
2374 | 2368 | | |
2375 | 2369 | | |
2376 | | - | |
2377 | | - | |
2378 | | - | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
2379 | 2373 | | |
2380 | | - | |
2381 | | - | |
| 2374 | + | |
2382 | 2375 | | |
2383 | 2376 | | |
2384 | 2377 | | |
2385 | 2378 | | |
2386 | 2379 | | |
2387 | | - | |
| 2380 | + | |
2388 | 2381 | | |
2389 | | - | |
| 2382 | + | |
2390 | 2383 | | |
2391 | 2384 | | |
2392 | 2385 | | |
2393 | 2386 | | |
2394 | | - | |
| 2387 | + | |
2395 | 2388 | | |
2396 | 2389 | | |
2397 | 2390 | | |
2398 | 2391 | | |
2399 | | - | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
2407 | | - | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
2421 | | - | |
2422 | | - | |
2423 | | - | |
2424 | | - | |
2425 | | - | |
2426 | | - | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
| 2392 | + | |
2431 | 2393 | | |
2432 | 2394 | | |
2433 | 2395 | | |
2434 | 2396 | | |
2435 | 2397 | | |
2436 | 2398 | | |
2437 | | - | |
| 2399 | + | |
2438 | 2400 | | |
2439 | | - | |
2440 | | - | |
| 2401 | + | |
| 2402 | + | |
2441 | 2403 | | |
2442 | | - | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
2443 | 2411 | | |
2444 | 2412 | | |
2445 | 2413 | | |
2446 | 2414 | | |
2447 | | - | |
2448 | | - | |
| 2415 | + | |
| 2416 | + | |
2449 | 2417 | | |
2450 | 2418 | | |
2451 | 2419 | | |
2452 | | - | |
| 2420 | + | |
2453 | 2421 | | |
2454 | | - | |
| 2422 | + | |
2455 | 2423 | | |
2456 | 2424 | | |
2457 | 2425 | | |
2458 | 2426 | | |
2459 | | - | |
| 2427 | + | |
2460 | 2428 | | |
2461 | 2429 | | |
2462 | 2430 | | |
2463 | 2431 | | |
2464 | | - | |
| 2432 | + | |
2465 | 2433 | | |
2466 | 2434 | | |
2467 | | - | |
| 2435 | + | |
2468 | 2436 | | |
2469 | 2437 | | |
2470 | | - | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
2471 | 2445 | | |
2472 | | - | |
2473 | | - | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
2483 | | - | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | | - | |
| 2446 | + | |
2489 | 2447 | | |
2490 | 2448 | | |
2491 | 2449 | | |
| |||
0 commit comments