projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port to trace format 2.4
[ust.git]
/
libust
/
tracercore.h
diff --git
a/libust/tracercore.h
b/libust/tracercore.h
index 3113383cfd69184e52cd06f1a81f3b47566f8472..79c2dbf9d3635f134dcb893154b9f5509e31f580 100644
(file)
--- a/
libust/tracercore.h
+++ b/
libust/tracercore.h
@@
-61,8
+61,7
@@
extern void ltt_filter_unregister(void);
*/
static inline unsigned int ltt_align(size_t align_drift, size_t size_of_type)
{
*/
static inline unsigned int ltt_align(size_t align_drift, size_t size_of_type)
{
- size_t alignment = min(sizeof(void *), size_of_type);
- return (alignment - align_drift) & (alignment - 1);
+ return (size_of_type - align_drift) & (size_of_type - 1);
}
/* Default arch alignment */
#define LTT_ALIGN
}
/* Default arch alignment */
#define LTT_ALIGN
This page took
0.023834 seconds
and
4
git commands to generate.