Changbin Du
6870c0165f
scripts/faddr2line: show the code context
...
Inspired by gdb command 'list', show the code context of target lines.
Here is a example:
$ scripts/faddr2line vmlinux native_write_msr+0x6
native_write_msr+0x6/0x20:
arch_static_branch at arch/x86/include/asm/msr.h:105
100 return EAX_EDX_VAL(val, low, high);
101 }
102
103 static inline void notrace __wrmsr(unsigned int msr, u32 low, u32 high)
104 {
105 asm volatile("1: wrmsr\n"
106 "2:\n"
107 _ASM_EXTABLE_HANDLE(1b, 2b, ex_handler_wrmsr_unsafe)
108 : : "c" (msr), "a"(low), "d" (high) : "memory");
109 }
110
(inlined by) static_key_false at include/linux/jump_label.h:142
137 #define JUMP_TYPE_LINKED 2UL
138 #define JUMP_TYPE_MASK 3UL
139
140 static __always_inline bool static_key_false(struct static_key *key)
141 {
142 return arch_static_branch(key, false);
143 }
144
145 static __always_inline bool static_key_true(struct static_key *key)
146 {
147 return !arch_static_branch(key, true);
(inlined by) native_write_msr at arch/x86/include/asm/msr.h:150
145 static inline void notrace
146 native_write_msr(unsigned int msr, u32 low, u32 high)
147 {
148 __wrmsr(msr, low, high);
149
150 if (msr_tracepoint_active(__tracepoint_write_msr))
151 do_trace_write_msr(msr, ((u64)high << 32 | low), 0);
152 }
153
154 /* Can be uninlined because referenced by paravirt */
155 static inline int notrace
Link: http://lkml.kernel.org/r/1521444205-2259-1-git-send-email-changbin.du@intel.com
Signed-off-by: Changbin Du <changbin.du@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
Cc: NeilBrown <neilb@suse.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-04-05 21:36:21 -07:00
..
2018-03-26 02:01:23 +09:00
2018-03-28 14:30:41 +10:00
2017-11-14 18:25:40 -08:00
2018-02-05 17:27:46 -08:00
2018-01-19 10:09:41 -08:00
2018-01-13 21:50:13 +09:00
2018-04-03 16:28:01 -07:00
2017-03-28 16:16:52 +02:00
2018-03-09 23:19:56 +01:00
2018-03-28 01:42:17 +09:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2017-06-23 14:17:38 -06:00
2018-04-03 15:51:22 -07:00
2016-04-06 14:06:48 +01:00
2018-03-09 01:12:31 +09:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2018-04-03 16:28:01 -07:00
2018-03-26 15:56:15 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-02 00:21:47 +09:00
2017-11-02 11:10:55 +01:00
2016-10-11 15:06:30 -07:00
2017-11-02 11:10:55 +01:00
2018-01-31 17:18:34 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-12 11:07:42 -06:00
2017-05-14 11:20:44 +09:00
2017-05-14 11:20:44 +09:00
2015-09-25 16:31:45 +01:00
2015-04-15 14:01:12 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-05 21:36:21 -07:00
2018-03-26 02:01:24 +09:00
2017-10-23 08:01:37 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-05-14 11:20:44 +09:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2016-02-26 15:30:20 +00:00
2018-04-04 16:01:43 -07:00
2018-03-26 02:01:23 +09:00
2018-03-29 15:27:42 -06:00
2017-11-02 11:10:55 +01:00
2017-11-14 09:29:27 +11:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:24 +09:00
2017-11-02 11:10:55 +01:00
2017-11-17 17:45:29 -08:00
2018-03-26 02:01:29 +09:00
2017-11-02 11:10:55 +01:00
2017-11-14 18:25:40 -08:00
2018-01-18 09:37:53 +09:00
2017-11-02 11:10:55 +01:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2018-02-06 18:32:47 -08:00
2017-11-17 16:10:04 -08:00
2018-03-31 12:22:38 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:46 -08:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2015-06-23 13:35:47 +09:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2018-03-26 02:01:19 +09:00
2017-03-11 11:13:38 +09:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-23 14:29:59 +00:00
2015-11-03 10:45:26 -05:00
2018-04-04 16:43:47 -07:00
2017-11-02 11:10:55 +01:00
2017-02-10 12:43:47 +11:00
2016-11-14 11:11:51 +11:00
2014-10-14 02:18:23 +02:00
2017-11-17 16:10:00 -08:00
2017-09-08 10:02:55 -06:00
2018-02-13 14:21:52 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 17:18:34 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-08-20 16:03:45 +02:00