x86/hw-breakpoints: Remove the name field
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 27 Feb 2010 16:24:15 +0000 (17:24 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 27 Feb 2010 16:24:15 +0000 (17:24 +0100)
Remove the name field from the arch_hw_breakpoint. We never deal
with target symbols in the arch level, neither do we need to ever
store it. It's a legacy for the previous version of the x86
breakpoint backend.

Let's remove it.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/hw_breakpoint.h
arch/x86/kernel/hw_breakpoint.c

index 0675a7c4c20e82e168b88242dca1211ed8f52a62..2a1bd8f4f23ad34bafa49c829e18172d17569d50 100644 (file)
@@ -10,7 +10,6 @@
  * (display/resolving)
  */
 struct arch_hw_breakpoint {
-       char            *name; /* Contains name of the symbol to set bkpt */
        unsigned long   address;
        u8              len;
        u8              type;
index dca2802c666f240019c54a75c5ff5240d5778bb9..41e08dff01614f91cf5419b65407c9ecdb22fbed 100644 (file)
@@ -343,13 +343,6 @@ int arch_validate_hwbkpt_settings(struct perf_event *bp,
                return ret;
        }
 
-       /*
-        * For kernel-addresses, either the address or symbol name can be
-        * specified.
-        */
-       if (info->name)
-               info->address = (unsigned long)
-                               kallsyms_lookup_name(info->name);
        /*
         * Check that the low-order bits of the address are appropriate
         * for the alignment implied by len.