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 | 8c065579a391fa2c4df0d15908a901c04f2736bb (patch) | |
tree | 60855b7d29ab93d5f08351084bc62c337a5be1bf /test | |
parent | fc1463ac75cfc8712f0ed30148758871938aafb1 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@266994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/tsan/debugging.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tsan/debugging.cc b/test/tsan/debugging.cc index 08ba82c0d..653364404 100644 --- a/test/tsan/debugging.cc +++ b/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 } |