函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\trace\trace_events_hist.c Create Date:2022-07-27 13:42:35
首页 Copyright©Brick

5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
static void hist_trigger_stacktrace_print(struct seq_file *m,
                      unsigned long *stacktrace_entries,
                      unsigned int max_entries)
{
    char str[KSYM_SYMBOL_LEN];
    unsigned int spaces = 8;
    unsigned int i;
 
    for (i = 0; i < max_entries; i++) {
        if (!stacktrace_entries[i])
            return;
 
        seq_printf(m, "%*c", 1 + spaces, ' ');
        sprint_symbol(str, stacktrace_entries[i]);
        seq_printf(m, "%s\n", str);
    }
}