satyr  0.28
Functions
normalize.h File Reference

Normalization of stack traces. More...

Go to the source code of this file.

Functions

void sr_normalize_gdb_thread (struct sr_gdb_thread *thread)
 
void sr_normalize_gdb_stacktrace (struct sr_gdb_stacktrace *stacktrace)
 
void sr_normalize_core_thread (struct sr_core_thread *thread)
 
struct sr_gdb_framesr_glibc_thread_find_exit_frame (struct sr_gdb_thread *thread)
 
void sr_normalize_gdb_paired_unknown_function_names (struct sr_gdb_thread *thread1, struct sr_gdb_thread *thread2)
 
void sr_gdb_normalize_optimize_thread (struct sr_gdb_thread *thread)
 

Detailed Description

Normalization of stack traces.

Normalization changes stack traces with respect to similarity by removing unnecessary differences. Normalized stack traces can be used to compute clusters and similarity of stack traces.

Definition in file normalize.h.

Function Documentation

◆ sr_gdb_normalize_optimize_thread()

void sr_gdb_normalize_optimize_thread ( struct sr_gdb_thread thread)

Remove frames which are not interesting in comparison with other threads.

◆ sr_glibc_thread_find_exit_frame()

struct sr_gdb_frame* sr_glibc_thread_find_exit_frame ( struct sr_gdb_thread thread)

Checks whether the thread it contains some function used to exit application. If a frame with the function is found, it is returned. If there are multiple frames with abort function, the lowest one is returned.

Returns
Returns NULL if such a frame is not found.

◆ sr_normalize_gdb_paired_unknown_function_names()

void sr_normalize_gdb_paired_unknown_function_names ( struct sr_gdb_thread thread1,
struct sr_gdb_thread thread2 
)

Renames unknown function names ("??") that are between the same function names to be treated as similar in later comparison. Leaves unpair unknown functions unchanged.