Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e2087be3
Commit
e2087be3
authored
Oct 03, 2012
by
Pekka Enberg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'slab/tracing' into slab/for-linus
parents
f4178cdd
dffa3f98
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
include/linux/slab_def.h
include/linux/slab_def.h
+7
-7
mm/slab.c
mm/slab.c
+1
-1
mm/slob.c
mm/slob.c
+1
-1
No files found.
include/linux/slab_def.h
View file @
e2087be3
...
@@ -159,16 +159,16 @@ extern void *__kmalloc_node(size_t size, gfp_t flags, int node);
...
@@ -159,16 +159,16 @@ extern void *__kmalloc_node(size_t size, gfp_t flags, int node);
extern
void
*
kmem_cache_alloc_node
(
struct
kmem_cache
*
,
gfp_t
flags
,
int
node
);
extern
void
*
kmem_cache_alloc_node
(
struct
kmem_cache
*
,
gfp_t
flags
,
int
node
);
#ifdef CONFIG_TRACING
#ifdef CONFIG_TRACING
extern
void
*
kmem_cache_alloc_node_trace
(
size_t
size
,
extern
void
*
kmem_cache_alloc_node_trace
(
struct
kmem_cache
*
cachep
,
struct
kmem_cache
*
cachep
,
gfp_t
flags
,
gfp_t
flags
,
int
nodeid
);
int
nodeid
,
size_t
size
);
#else
#else
static
__always_inline
void
*
static
__always_inline
void
*
kmem_cache_alloc_node_trace
(
size_t
size
,
kmem_cache_alloc_node_trace
(
struct
kmem_cache
*
cachep
,
struct
kmem_cache
*
cachep
,
gfp_t
flags
,
gfp_t
flags
,
int
nodeid
)
int
nodeid
,
size_t
size
)
{
{
return
kmem_cache_alloc_node
(
cachep
,
flags
,
nodeid
);
return
kmem_cache_alloc_node
(
cachep
,
flags
,
nodeid
);
}
}
...
@@ -200,7 +200,7 @@ static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
...
@@ -200,7 +200,7 @@ static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
#endif
#endif
cachep
=
malloc_sizes
[
i
].
cs_cachep
;
cachep
=
malloc_sizes
[
i
].
cs_cachep
;
return
kmem_cache_alloc_node_trace
(
size
,
cachep
,
flags
,
nod
e
);
return
kmem_cache_alloc_node_trace
(
cachep
,
flags
,
node
,
siz
e
);
}
}
return
__kmalloc_node
(
size
,
flags
,
node
);
return
__kmalloc_node
(
size
,
flags
,
node
);
}
}
...
...
mm/slab.c
View file @
e2087be3
...
@@ -3824,7 +3824,7 @@ void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
...
@@ -3824,7 +3824,7 @@ void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep,
{
{
void
*
ret
;
void
*
ret
;
ret
=
slab_alloc_node
(
cachep
,
flags
,
nodeid
,
_RET_IP
);
ret
=
slab_alloc_node
(
cachep
,
flags
,
nodeid
,
_RET_IP
_
);
trace_kmalloc_node
(
_RET_IP_
,
ret
,
trace_kmalloc_node
(
_RET_IP_
,
ret
,
size
,
cachep
->
size
,
size
,
cachep
->
size
,
...
...
mm/slob.c
View file @
e2087be3
...
@@ -482,7 +482,7 @@ void *__kmalloc_track_caller(size_t size, gfp_t gfp, unsigned long caller)
...
@@ -482,7 +482,7 @@ void *__kmalloc_track_caller(size_t size, gfp_t gfp, unsigned long caller)
}
}
#ifdef CONFIG_NUMA
#ifdef CONFIG_NUMA
void
*
__kmalloc_node_track_caller
(
size_t
size
,
gfp_t
gfp
flags
,
void
*
__kmalloc_node_track_caller
(
size_t
size
,
gfp_t
gfp
,
int
node
,
unsigned
long
caller
)
int
node
,
unsigned
long
caller
)
{
{
return
__do_kmalloc_node
(
size
,
gfp
,
node
,
caller
);
return
__do_kmalloc_node
(
size
,
gfp
,
node
,
caller
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment