David Marchand
d6fd5a018e
trace: fix dynamically enabling trace points
...
Enabling trace points at runtime was not working if no trace point had
been enabled first at rte_eal_init() time. The reason was that
trace.args reflected the arguments passed to --trace= EAL option.
To fix this:
- the trace subsystem initialisation is updated: trace directory
creation is deferred to when traces are dumped (to avoid creating
directories that may not be used),
- per lcore memory allocation still relies on rte_trace_is_enabled() but
this helper now tracks if any trace point is enabled. The
documentation is updated accordingly,
- cleanup helpers must always be called in rte_eal_cleanup() since some
trace points might have been enabled and disabled in the lifetime of
the DPDK application,
With this fix, we can update the unit test and check that a trace point
callback is invoked when expected.
Note:
- the 'trace' global variable might be shadowed with the argument
passed to the functions dealing with trace point handles.
'tp' has been used for referring to trace_point object.
Prefer 't' for referring to handles,
Fixes: 84c4fae4628f ("trace: implement operation APIs")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Sunil Kumar Kori <skori@marvell.com>
2022-10-20 13:34:19 +02:00
..
2019-02-26 15:29:27 +01:00
2022-06-13 11:18:39 +02:00
2022-02-08 14:19:40 +01:00
2022-10-10 14:53:40 +02:00
2022-02-08 14:19:40 +01:00
2019-05-24 13:34:46 +02:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2019-03-27 23:10:57 +01:00
2021-10-26 19:59:26 +02:00
2021-10-26 19:59:26 +02:00
2022-06-24 14:51:09 +02:00
2020-02-13 14:43:56 +01:00
2022-02-08 14:19:40 +01:00
2021-11-16 17:57:09 +01:00
2022-01-11 12:16:53 +01:00
2021-11-10 11:42:34 +01:00
2020-06-16 14:34:39 +02:00
2021-10-26 19:59:26 +02:00
2022-10-08 23:58:26 +02:00
2022-02-08 14:19:40 +01:00
2019-11-28 03:12:55 +01:00
2022-09-20 18:09:16 +02:00
2022-02-12 12:07:48 +01:00
2019-02-26 15:29:27 +01:00
2020-02-05 14:37:41 +01:00
2022-02-08 14:19:40 +01:00
2022-06-24 14:51:09 +02:00
2021-04-21 00:44:24 +02:00
2020-02-05 14:37:41 +01:00
2020-02-05 14:37:41 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2022-09-21 15:31:03 +02:00
2020-10-20 13:17:08 +02:00
2022-02-12 12:07:48 +01:00
2022-10-06 12:45:05 +02:00
2022-06-26 19:53:05 +02:00
2021-10-20 15:33:16 +02:00
2021-07-20 22:27:00 +02:00
2020-01-15 15:01:55 +01:00
2022-09-27 17:16:52 +02:00
2022-10-04 22:29:01 +02:00
2021-10-16 16:24:43 +02:00
2020-04-19 22:45:40 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2020-01-15 15:01:55 +01:00
2020-01-15 15:01:55 +01:00
2022-09-27 17:16:52 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2022-06-30 06:54:21 +02:00
2022-02-12 10:26:39 +01:00
2022-02-22 20:21:20 +01:00
2021-11-04 19:46:27 +01:00
2022-09-27 17:16:52 +02:00
2022-10-04 22:37:54 +02:00
2022-10-04 22:37:54 +02:00
2020-10-14 22:24:41 +02:00
2019-10-09 11:50:12 +02:00
2022-06-01 16:26:35 +02:00
2022-06-21 17:10:45 +02:00
2019-02-26 15:29:27 +01:00
2022-06-30 06:54:21 +02:00
2022-06-30 06:54:21 +02:00
2022-10-04 22:37:54 +02:00
2022-02-12 12:07:48 +01:00
2021-06-03 18:08:57 +02:00
2022-02-08 14:19:40 +01:00
2022-09-23 16:14:34 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2021-10-17 20:49:58 +02:00
2021-10-17 20:49:58 +02:00
2022-10-09 11:37:41 +02:00
2022-06-23 22:36:33 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-27 18:57:45 +01:00
2022-02-08 14:19:40 +01:00
2021-10-22 18:15:38 +02:00
2022-10-04 22:29:01 +02:00
2022-09-26 15:33:44 +02:00
2022-09-28 05:47:38 +02:00
2022-02-08 14:19:40 +01:00
2022-09-26 15:33:48 +02:00
2022-05-17 16:43:48 +02:00
2022-02-08 14:19:40 +01:00
2019-07-06 10:32:34 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-06-24 14:51:09 +02:00
2022-02-08 14:19:40 +01:00
2022-03-07 20:31:14 +01:00
2020-02-05 14:37:41 +01:00
2021-10-19 17:15:10 +02:00
2022-02-12 12:07:48 +01:00
2022-06-26 17:18:41 +02:00
2022-05-11 14:01:03 +02:00
2022-06-24 14:51:09 +02:00
2022-02-08 14:19:40 +01:00
2022-08-29 16:24:18 +02:00
2022-10-04 22:29:01 +02:00
2022-02-08 14:19:40 +01:00
2022-10-04 22:37:00 +02:00
2022-09-23 16:14:33 +02:00
2022-01-11 12:16:53 +01:00
2021-10-26 19:59:26 +02:00
2022-02-08 14:19:40 +01:00
2022-10-04 11:20:04 +02:00
2022-10-04 11:20:04 +02:00
2022-10-04 11:20:04 +02:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 21:32:53 +01:00
2022-02-12 12:07:48 +01:00
2022-10-09 13:14:52 +02:00
2021-07-30 19:10:58 +02:00
2022-10-09 23:11:43 +02:00
2022-10-09 23:11:43 +02:00
2022-02-08 14:19:40 +01:00
2020-02-05 14:37:41 +01:00
2022-05-11 14:05:30 +02:00
2022-02-02 22:06:14 +01:00
2022-01-11 12:16:53 +01:00
2022-01-11 12:16:53 +01:00
2021-11-16 17:57:09 +01:00
2022-01-11 12:16:53 +01:00
2022-02-08 14:19:40 +01:00
2022-10-10 02:42:36 +02:00
2021-10-26 19:59:26 +02:00
2019-02-26 15:29:27 +01:00
2020-10-20 13:17:08 +02:00
2021-04-14 21:59:47 +02:00
2022-02-08 14:19:40 +01:00
2022-10-04 11:20:04 +02:00
2020-10-16 22:26:41 +02:00
2020-10-16 22:26:41 +02:00
2022-01-11 12:16:53 +01:00
2022-10-10 14:53:40 +02:00
2020-10-19 22:15:44 +02:00
2021-07-09 16:04:46 +02:00
2021-05-20 23:10:22 +02:00
2022-06-22 10:59:09 +02:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2022-01-11 12:16:53 +01:00
2021-05-19 09:23:00 +02:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2022-02-12 12:07:48 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2022-02-08 14:19:40 +01:00
2020-04-21 12:52:55 +02:00
2020-04-21 11:34:09 +02:00
2020-11-15 16:45:48 +01:00
2020-07-03 12:36:04 +02:00
2021-11-17 11:07:06 +01:00
2020-04-21 12:52:55 +02:00
2020-10-29 14:13:31 +01:00
2020-07-03 12:05:25 +02:00
2022-02-08 14:19:40 +01:00
2020-10-29 14:13:31 +01:00
2020-10-29 14:13:31 +01:00
2021-11-17 11:07:06 +01:00
2022-05-23 15:29:39 +02:00
2021-11-16 16:28:53 +01:00
2022-02-08 14:19:40 +01:00
2022-09-27 20:31:16 +02:00
2022-10-04 11:20:04 +02:00
2022-10-04 22:37:54 +02:00
2022-06-07 13:33:14 +02:00
2022-10-06 21:41:14 +02:00
2021-07-30 19:06:35 +02:00
2021-11-17 11:07:06 +01:00
2021-10-19 17:15:10 +02:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2020-10-19 22:15:44 +02:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-02-08 14:19:40 +01:00
2019-02-26 15:29:27 +01:00
2022-06-07 16:44:21 +02:00
2020-10-19 22:15:44 +02:00
2022-02-08 14:19:40 +01:00
2020-10-19 22:15:44 +02:00
2019-10-09 10:22:24 +02:00
2022-09-26 13:49:38 +02:00
2022-09-26 13:49:11 +02:00
2022-08-25 16:23:17 +02:00
2021-11-16 13:01:52 +01:00
2022-01-11 12:16:53 +01:00
2022-10-06 21:06:43 +02:00
2021-07-30 19:04:34 +02:00
2019-03-12 17:31:22 +01:00
2021-05-19 11:02:45 +02:00
2022-02-08 14:19:40 +01:00
2021-11-17 11:07:06 +01:00
2021-04-14 16:12:44 +02:00
2020-07-05 21:34:21 +02:00
2022-10-20 13:34:19 +02:00
2022-10-20 13:34:19 +02:00
2022-09-23 16:14:34 +02:00
2019-02-26 15:29:27 +01:00
2022-10-06 12:45:05 +02:00
2022-06-13 11:18:39 +02:00
2022-09-21 15:31:03 +02:00
2022-09-23 16:14:34 +02:00
2019-05-24 13:34:45 +02:00