]> sourceware.org Git - systemtap.git/commit
2005-12-07 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 7 Dec 2005 20:02:04 +0000 (20:02 +0000)
committerhunt <hunt>
Wed, 7 Dec 2005 20:02:04 +0000 (20:02 +0000)
commit953c5ad1c72d55e3c017e7975becfa175ccdf7f5
tree27b47f177cdf09bf266a60f1bff9113953270ee4
parent872d26246196a87da8551661635cce52c8e5ed3a
2005-12-07  Martin Hunt  <hunt@redhat.com>
 PR1923
* map.h (struct map_root): Remove membuf.
(struct pmap): Define.
(PMAP): Declare.

* map.c (_stp_map_init): Use kmalloc() to allocate individual
nodes instead of using vmalloc() to allocate one big chunk.
(_stp_map_new): Use kmalloc.
(_stp_pmap_new): Use kmalloc. Return a PMAP.
(__stp_map_del): New function. Free all the nodes in a map.
(_stp_map_del): Call __stp_map_del() then free map struct.
(_stp_pmap_del): Takes a PMAP. Calls __stp_map_del() for
each cpu.
(_stp_pmap_printn_cpu): Change arg to PMAP.
(_stp_pmap_agg): Change arg to PMAP.
(_stp_pmap_get_agg): Change arg to PMAP.

* map-stat.c (_stp_pmap_new_hstat_linear): Use PMAP
instead of MAP. Fix allocations.
(_stp_pmap_new_hstat_log): Ditto.

* pmap-gen.c Fix all functions to take or return PMAPS
instead of MAPS.

* alloc.c: Remove everything except kmalloc_node().
All runtime code now uses kmalloc() directly.
runtime/ChangeLog
runtime/alloc.c
runtime/map-stat.c
runtime/map.c
runtime/map.h
runtime/pmap-gen.c
This page took 0.026605 seconds and 5 git commands to generate.