[lkml]   [2013]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectdebug data for per-cpu variable offsets
Hi, for x86_64 platforms, I was wondering if there is any table of
per-cpu variable offsets left in a (unstripped) vmlinux file. Looking
at the disassembly of routines accessing a per-cpu variables like
current_task, we see the offset hardcoded e.g. mov %gs:0xc500,%rax. Is
there any table in some section in unstripped vmlinux that indicates
current_task is at offset 0xc500 from gs base (similar to how a
struct's members and offsets are enumerated in the debug sections of


 \ /
  Last update: 2013-08-02 21:21    [W:0.038 / U:1.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site