From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30065 invoked by alias); 7 Dec 2005 20:02:06 -0000 Received: (qmail 30051 invoked by uid 9163); 7 Dec 2005 20:02:05 -0000 Date: Wed, 07 Dec 2005 20:02:00 -0000 Message-ID: <20051207200205.30049.qmail@sourceware.org> From: hunt@sourceware.org To: systemtap-cvs@sources.redhat.com Subject: src/runtime ChangeLog alloc.c map-stat.c map.c ... Mailing-List: contact systemtap-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-cvs-owner@sourceware.org List-Archive: X-SW-Source: 2005-q4/txt/msg00173.txt.bz2 List-Id: CVSROOT: /cvs/systemtap Module name: src Changes by: hunt@sourceware.org 2005-12-07 20:02:05 Modified files: runtime : ChangeLog alloc.c map-stat.c map.c map.h pmap-gen.c Log message: 2005-12-07 Martin Hunt 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. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/ChangeLog.diff?cvsroot=systemtap&r1=1.87&r2=1.88 http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/alloc.c.diff?cvsroot=systemtap&r1=1.10&r2=1.11 http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/map-stat.c.diff?cvsroot=systemtap&r1=1.7&r2=1.8 http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/map.c.diff?cvsroot=systemtap&r1=1.28&r2=1.29 http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/map.h.diff?cvsroot=systemtap&r1=1.18&r2=1.19 http://sourceware.org/cgi-bin/cvsweb.cgi/src/runtime/pmap-gen.c.diff?cvsroot=systemtap&r1=1.5&r2=1.6