[PATCH v4 05/37] unwind: rename unwind_delete_mmap_cache to unwind_cache_invalidate

Masatake YAMATO yamato at redhat.com
Wed Apr 16 06:33:03 UTC 2014


To make the intent of API exported from unwind.c to other
parts of strace, rename `unwind_delete_mmap_cache' to
`unwind_cache_invalidate'.

Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
 defs.h    | 2 +-
 mem.c     | 6 +++---
 process.c | 2 +-
 unwind.c  | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/defs.h b/defs.h
index e0d5a08..177bcd6 100644
--- a/defs.h
+++ b/defs.h
@@ -730,7 +730,7 @@ extern void tv_div(struct timeval *, struct timeval *, int);
 extern void unwind_init(void);
 extern void unwind_tcb_init(struct tcb *tcp);
 extern void unwind_tcb_fin(struct tcb *tcp);
-extern void unwind_delete_mmap_cache(struct tcb* tcp);
+extern void unwind_cache_invalidate(struct tcb* tcp);
 extern void unwind_print_stacktrace(struct tcb* tcp);
 #endif
 
diff --git a/mem.c b/mem.c
index 14489c5..b3d598e 100644
--- a/mem.c
+++ b/mem.c
@@ -180,7 +180,7 @@ print_mmap(struct tcb *tcp, long *u_arg, unsigned long long offset)
 	if (entering(tcp)) {
 #ifdef USE_LIBUNWIND
 		if (stack_trace_enabled)
-			unwind_delete_mmap_cache(tcp);
+			unwind_cache_invalidate(tcp);
 #endif
 
 		/* addr */
@@ -315,7 +315,7 @@ sys_munmap(struct tcb *tcp)
 #ifdef USE_LIBUNWIND
 	else {
 		if (stack_trace_enabled)
-			unwind_delete_mmap_cache(tcp);
+			unwind_cache_invalidate(tcp);
 	}
 #endif
 	return 0;
@@ -332,7 +332,7 @@ sys_mprotect(struct tcb *tcp)
 #ifdef USE_LIBUNWIND
 	else {
 		if (stack_trace_enabled)
-			unwind_delete_mmap_cache(tcp);
+			unwind_cache_invalidate(tcp);
 	}
 #endif
 	return 0;
diff --git a/process.c b/process.c
index 453574e..b5c804c 100644
--- a/process.c
+++ b/process.c
@@ -993,7 +993,7 @@ sys_execve(struct tcb *tcp)
 #ifdef USE_LIBUNWIND
 	else {
 		if (stack_trace_enabled)
-			unwind_delete_mmap_cache(tcp);
+			unwind_cache_invalidate(tcp);
 	}
 #endif
 
diff --git a/unwind.c b/unwind.c
index a2b9c6a..4ebc048 100644
--- a/unwind.c
+++ b/unwind.c
@@ -69,7 +69,7 @@ unwind_tcb_init(struct tcb *tcp)
 void
 unwind_tcb_fin(struct tcb *tcp)
 {
-	unwind_delete_mmap_cache(tcp);
+	unwind_cache_invalidate(tcp);
 	_UPT_destroy(tcp->libunwind_ui);
 	tcp->libunwind_ui = NULL;
 }
@@ -157,7 +157,7 @@ alloc_mmap_cache(struct tcb* tcp)
 
 /* deleting the cache */
 void
-unwind_delete_mmap_cache(struct tcb* tcp)
+unwind_cache_invalidate(struct tcb* tcp)
 {
 	unsigned int i;
 	for (i = 0; i < tcp->mmap_cache_size; i++) {
-- 
1.9.0





More information about the Strace-devel mailing list