projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Distribute some forgotten files that are needed by "make check".
[openvswitch]
/
lib
/
backtrace.c
diff --git
a/lib/backtrace.c
b/lib/backtrace.c
index 0999a081ecb351e9e0c530b43010cadc7c4dcf10..2f47809326ddc9d380e558feb5c5625d31ffdaf8 100644
(file)
--- a/
lib/backtrace.c
+++ b/
lib/backtrace.c
@@
-42,7
+42,7
@@
get_max_stack(void)
for (line_number = 1; fgets(line, sizeof line, f); line_number++) {
if (strstr(line, "[stack]")) {
uintptr_t end;
for (line_number = 1; fgets(line, sizeof line, f); line_number++) {
if (strstr(line, "[stack]")) {
uintptr_t end;
- if (sscanf(line, "%*
"SCNxPTR"
-%"SCNxPTR, &end) != 1) {
+ if (sscanf(line, "%*
x
-%"SCNxPTR, &end) != 1) {
VLOG_WARN("%s:%d: parse error", file_name, line_number);
continue;
}
VLOG_WARN("%s:%d: parse error", file_name, line_number);
continue;
}
@@
-73,6
+73,10
@@
stack_low(void)
uintptr_t low;
asm("movl %%esp,%0" : "=g" (low));
return low;
uintptr_t low;
asm("movl %%esp,%0" : "=g" (low));
return low;
+#elif __x86_64__
+ uintptr_t low;
+ asm("movq %%rsp,%0" : "=g" (low));
+ return low;
#else
/* This causes a warning in GCC that cannot be disabled, so use it only on
* non-x86. */
#else
/* This causes a warning in GCC that cannot be disabled, so use it only on
* non-x86. */