Commit c569cac8b69397d8bc80f95bc6edf13ed902e28b

Authored by Chris Metcalf
1 parent 29507663df

arch/tile: support new info op generated by compiler

This just syncs the backtracing support in the kernel to the
upstream backtrace library.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>

Showing 2 changed files with 8 additions and 1 deletions Side-by-side Diff

arch/tile/include/asm/backtrace.h
... ... @@ -146,7 +146,10 @@
146 146  
147 147 CALLER_SP_IN_R52_BASE = 4,
148 148  
149   - CALLER_SP_OFFSET_BASE = 8
  149 + CALLER_SP_OFFSET_BASE = 8,
  150 +
  151 + /* Marks the entry point of certain functions. */
  152 + ENTRY_POINT_INFO_OP = 16
150 153 };
151 154  
152 155  
arch/tile/kernel/backtrace.c
... ... @@ -369,6 +369,10 @@
369 369 /* Weird; reserved value, ignore it. */
370 370 continue;
371 371 }
  372 + if (info_operand & ENTRY_POINT_INFO_OP) {
  373 + /* This info op is ignored by the backtracer. */
  374 + continue;
  375 + }
372 376  
373 377 /* Skip info ops which are not in the
374 378 * "one_ago" mode we want right now.