Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Albano
LLVM bpEVL
Commits
210c2112
Commit
210c2112
authored
12 years ago
by
Dmitry Vyukov
Browse files
Options
Downloads
Patches
Plain Diff
tsan: add memory range access functions to public iface
llvm-svn: 168692
parent
96c39f73
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler-rt/lib/tsan/rtl/tsan_interface.h
+3
-0
3 additions, 0 deletions
compiler-rt/lib/tsan/rtl/tsan_interface.h
compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
+8
-0
8 additions, 0 deletions
compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
with
11 additions
and
0 deletions
compiler-rt/lib/tsan/rtl/tsan_interface.h
+
3
−
0
View file @
210c2112
...
...
@@ -44,6 +44,9 @@ void __tsan_vptr_update(void **vptr_p, void *new_val);
void
__tsan_func_entry
(
void
*
call_pc
);
void
__tsan_func_exit
();
void
__tsan_read_range
(
void
*
addr
,
unsigned
long
size
);
// NOLINT
void
__tsan_write_range
(
void
*
addr
,
unsigned
long
size
);
// NOLINT
#ifdef __cplusplus
}
// extern "C"
#endif
...
...
This diff is collapsed.
Click to expand it.
compiler-rt/lib/tsan/rtl/tsan_interface_inl.h
+
8
−
0
View file @
210c2112
...
...
@@ -63,3 +63,11 @@ void __tsan_func_entry(void *pc) {
void
__tsan_func_exit
()
{
FuncExit
(
cur_thread
());
}
void
__tsan_read_range
(
void
*
addr
,
uptr
size
)
{
MemoryAccessRange
(
cur_thread
(),
CALLERPC
,
(
uptr
)
addr
,
size
,
false
);
}
void
__tsan_write_range
(
void
*
addr
,
uptr
size
)
{
MemoryAccessRange
(
cur_thread
(),
CALLERPC
,
(
uptr
)
addr
,
size
,
true
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment