memprof-0.5.1 ported to a 32-bit linuxPPC running YellowDogLinux-4.0.1

Joseph E. Sacco, PhD joseph_sacco at comcast.net
Mon Jul 11 11:56:02 MDT 2005


This is an attempt at hacking memprof-0.5.1 to run on a 32 bit PPC.

Attached are files to implement the changes within the GARNOME framework:

        http://cipherfunk.org/garnome/


Discussion
-----------
Three files were patched in order to get memprof to build, install, and
run.

* bfdutils.c
coding changes made because libbfd has changed since 2002

* memintercept-utils.c
atomic operations taken from glibc to implement
atomic_increment/decrement for platforms that uses glibc
[Must have /usr/include/asm/atomic.h installed].
 
* stack-frame.c
removed an __i386__ restriction and got away with it on a 32 bit PPC
[maybe...]


Observations
-------------
* I doubt this version of memprof will work on a 64 bit machine.

* The build generates a few warnings that appear to be unimportant on a
32 bit machine.

* running the application sometimes generates warnings about failure to
access the very first element in a memory block. 

For example:

        ** (memprof:7657): WARNING **: Cannot read word 0/52 in block
        0x1ffc18d4: Input/output error
        
        
        ** (memprof:7657): WARNING **: Cannot read word 0/2444 in block
        0x3fc577fc: Input/output error
        
        
        ** (memprof:7657): WARNING **: Cannot read word 0/61 in block
        0x3fc57000: Input/output error


-Joseph

-- 
jsacco [at] ydl [dot] net
-------------- next part --------------
GARNAME = memprof
GARVERSION = 0.5.1
CATEGORIES = hacker-tools
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2

LIBDEPS = platform/libgnomeui platform/GConf
PATCHFILES = memprof.patch

DESCRIPTION = memprof
define BLURB
 #FIXME: blurb goes here
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS)

include ../category.mk
-------------- next part --------------
2d83704352a584ea7c78fbda9540c5cb  download/memprof-0.5.1.tar.bz2
c407090574c2a8e0b8548d8e8536e0e6  download/memprof.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memprof.patch
Type: text/x-patch
Size: 1960 bytes
Desc: not available
Url : http://lists.terrasoftsolutions.com/pipermail/yellowdog-general/attachments/20050711/3bb8398c/memprof-0001.bin


More information about the yellowdog-general mailing list