File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,6 @@ u8 kallsyms2elf_type(char type)
11
11
return (type == 't' || type == 'w' ) ? STT_FUNC : STT_OBJECT ;
12
12
}
13
13
14
- /*
15
- * While we find nice hex chars, build a long_val.
16
- * Return number of chars processed.
17
- */
18
- int hex2u64 (const char * ptr , u64 * long_val )
19
- {
20
- char * p ;
21
-
22
- * long_val = strtoull (ptr , & p , 16 );
23
-
24
- return p - ptr ;
25
- }
26
-
27
14
bool kallsyms__is_function (char symbol_type )
28
15
{
29
16
symbol_type = toupper (symbol_type );
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ static inline u8 kallsyms2elf_binding(char type)
18
18
return isupper (type ) ? STB_GLOBAL : STB_LOCAL ;
19
19
}
20
20
21
- int hex2u64 (const char * ptr , u64 * long_val );
22
-
23
21
u8 kallsyms2elf_type (char type );
24
22
25
23
bool kallsyms__is_function (char symbol_type );
Original file line number Diff line number Diff line change @@ -566,6 +566,20 @@ void dso__sort_by_name(struct dso *dso)
566
566
return symbols__sort_by_name (& dso -> symbol_names , & dso -> symbols );
567
567
}
568
568
569
+ /*
570
+ * While we find nice hex chars, build a long_val.
571
+ * Return number of chars processed.
572
+ */
573
+ static int hex2u64 (const char * ptr , u64 * long_val )
574
+ {
575
+ char * p ;
576
+
577
+ * long_val = strtoull (ptr , & p , 16 );
578
+
579
+ return p - ptr ;
580
+ }
581
+
582
+
569
583
int modules__parse (const char * filename , void * arg ,
570
584
int (* process_module )(void * arg , const char * name ,
571
585
u64 start , u64 size ))
You can’t perform that action at this time.
0 commit comments