Dynamic selective filtering of persistent tracing
An apparatus comprises at least one processing device that includes a processor coupled to a memory. The processing device is configured to receive, by a trace filter system, a trace chunk from a trace buffer associated with a processor core in a processing device, where the trace buffer is comprised of a plurality of trace chunks, to filter, by the trace filter system, the trace chunk, and to store the filtered trace chunk in the trace buffer.
1. A method comprising:
receiving, by a trace filter system, a trace chunk from a trace buffer associated with a processor core in a processing device, wherein the trace buffer is comprised of a plurality of trace chunks, wherein the trace filter system receives the trace chunk in response to a trace dump process that recycles trace chunks in the trace buffer;
filtering, by the trace filter system, the trace chunk; and
storing the filtered trace chunk in the trace buffer, wherein the method is performed by at least one processing device comprising a processor coupled to a memory.
2. The method of claim 1 wherein the at least one processing device comprises at least one processing core of a multi-core storage node of a distributed storage system.
3. The method of claim 1 wherein the trace filter system is comprised of filter keys that filter the trace chunk.
4. The method of claim 3 wherein the filtered trace chunks are portions of trace chunks that match the filter keys.
5. The method of claim 3 wherein portions of trace chunks that do not match the filter keys are discarded.
6. The method of claim 3 wherein a trace filter event handler adds the filter keys to the trace filter system.
7. The method of claim 6 wherein the trace filter event handler is triggered by at least one event on the processing device.
8. The method of claim 7 wherein the trace filter event handler extracts key information from a thread context.
9. The method of claim 3 wherein a trace filter event handler adds the filter keys temporarily to the trace filter system based on events on the processing device.
10. The method of claim 3 wherein the filter keys are manually added to the trace filter system.
11. The method of claim 1 wherein the trace buffer is comprised of trace chunk sections, and critical trace chunk sections, and wherein the trace filter system stores the filtered trace chunks in the critical trace chunk sections.
12. The method of claim 11 wherein the critical trace chunk sections are not recycled during the trace dump process.
13. The method of claim 12 wherein the critical trace chunk sections have a recycle process that is separate from the trace dump process.
14. The method of claim 1 wherein a search facility associated with a trace log is comprised of the trace filter system, wherein the trace chunk is comprised of at least one trace log.
15. The method of claim 1 wherein the trace filter system is triggered by at least one event on the processing device.
16. The method of claim 1 wherein the trace filter system is triggered to cease filtering by at least one event on the processing device.
17. An apparatus comprising:
at least one processing device comprising a processor coupled to a memory;
said at least one processing device being configured:
to receive, by a trace filter system, a trace chunk from a trace buffer associated with a processor core in a processing device, wherein the trace buffer is comprised of a plurality of trace chunks, wherein the trace filter system receives the trace chunk in response to a trace dump process that recycles trace chunks in the trace buffer;
to filter, by the trace filter system, the trace chunk; and
to store the filtered trace chunk in the trace buffer.
18. A computer program product comprising a non-transitory processor-readable storage medium having stored therein program code of one or more software programs, wherein the program code when executed by at least one processing device causes said at least one processing device:
to receive, by a trace filter system, a trace chunk from a trace buffer associated with a processor core in a processing device, wherein the trace buffer is comprised of a plurality of trace chunks, wherein the trace filter system receives the trace chunk in response to a trace dump process that recycles trace chunks in the trace buffer;
to filter, by the trace filter system, the trace chunk; and
to store the filtered trace chunk in the trace buffer.
19. The computer program product of claim 18 wherein the trace filter system is triggered by at least one event on the processing device.