diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-21 14:49:25 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-21 14:49:25 +0000 |
| commit | bf8b5f8dd2331870ee4ca0a3e242b98903293631 (patch) | |
| tree | bf24a43a73315e7cb3c94bf0b44a1aed08278441 /compiler-rt/test/tsan/debugging.cc | |
| parent | 1f04213e98229198de57f6d69b7bbc5dfa6d9c0c (diff) | |
| download | bcm5719-llvm-bf8b5f8dd2331870ee4ca0a3e242b98903293631.tar.gz bcm5719-llvm-bf8b5f8dd2331870ee4ca0a3e242b98903293631.zip | |
[tsan] Rename ReportThread->pid to ReportThread->os_id
The field "pid" in ReportThread is used to store the OS-provided thread ID (pthread_self or gettid). The name "pid" suggests it's a process ID, which it isn't. Let's rename it.
Differential Revision: http://reviews.llvm.org/D19365
llvm-svn: 266994
Diffstat (limited to 'compiler-rt/test/tsan/debugging.cc')
| -rw-r--r-- | compiler-rt/test/tsan/debugging.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/test/tsan/debugging.cc b/compiler-rt/test/tsan/debugging.cc index 08ba82c0df7..653364404eb 100644 --- a/compiler-rt/test/tsan/debugging.cc +++ b/compiler-rt/test/tsan/debugging.cc @@ -20,7 +20,7 @@ int __tsan_get_report_mop(void *report, unsigned long idx, int *tid, void **addr, int *size, int *write, int *atomic, void **trace, unsigned long trace_size); int __tsan_get_report_thread(void *report, unsigned long idx, int *tid, - unsigned long *pid, int *running, + unsigned long *os_id, int *running, const char **name, int *parent_tid, void **trace, unsigned long trace_size); } @@ -90,16 +90,16 @@ void __tsan_on_report(void *report) { fprintf(stderr, "thread_count = %d\n", thread_count); // CHECK: thread_count = 2 - unsigned long pid; + unsigned long os_id; int running; const char *name; int parent_tid; - __tsan_get_report_thread(report, 0, &tid, &pid, &running, &name, &parent_tid, trace, 16); + __tsan_get_report_thread(report, 0, &tid, &os_id, &running, &name, &parent_tid, trace, 16); fprintf(stderr, "tid = %d\n", tid); // CHECK: tid = 1 - __tsan_get_report_thread(report, 1, &tid, &pid, &running, &name, &parent_tid, trace, 16); + __tsan_get_report_thread(report, 1, &tid, &os_id, &running, &name, &parent_tid, trace, 16); fprintf(stderr, "tid = %d\n", tid); // CHECK: tid = 0 } |

