|
@@ -142,6 +142,7 @@ void set_trace_device(struct device *dev)
|
|
|
{
|
|
|
dev_hash_value = hash_string(DEVSEED, dev->bus_id, DEVHASH);
|
|
|
}
|
|
|
+EXPORT_SYMBOL(set_trace_device);
|
|
|
|
|
|
/*
|
|
|
* We could just take the "tracedata" index into the .tracedata
|
|
@@ -162,6 +163,7 @@ void generate_resume_trace(void *tracedata, unsigned int user)
|
|
|
file_hash_value = hash_string(lineno, file, FILEHASH);
|
|
|
set_magic_time(user_hash_value, file_hash_value, dev_hash_value);
|
|
|
}
|
|
|
+EXPORT_SYMBOL(generate_resume_trace);
|
|
|
|
|
|
extern char __tracedata_start, __tracedata_end;
|
|
|
static int show_file_hash(unsigned int value)
|
|
@@ -170,7 +172,8 @@ static int show_file_hash(unsigned int value)
|
|
|
char *tracedata;
|
|
|
|
|
|
match = 0;
|
|
|
- for (tracedata = &__tracedata_start ; tracedata < &__tracedata_end ; tracedata += 6) {
|
|
|
+ for (tracedata = &__tracedata_start ; tracedata < &__tracedata_end ;
|
|
|
+ tracedata += 2 + sizeof(unsigned long)) {
|
|
|
unsigned short lineno = *(unsigned short *)tracedata;
|
|
|
const char *file = *(const char **)(tracedata + 2);
|
|
|
unsigned int hash = hash_string(lineno, file, FILEHASH);
|