Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
	* elf/dl-profile.c (_dl_start_profile): define all variables which
	do not have to be global as local variables.
  • Loading branch information
Ulrich Drepper committed Apr 25, 2000
1 parent 6d5728c commit 128e2b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2000-04-24 Ulrich Drepper <drepper@redhat.com>

* elf/dl-profile.c (_dl_start_profile): define all variables which
do not have to be global as local variables.

* nis/nis_callback.c (__nis_create_callback): Partially undo last
patch. Keep needed tests for failed memory allocation.

Expand Down
19 changes: 8 additions & 11 deletions elf/dl-profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,27 +155,16 @@ struct here_fromstruct
};

static uint16_t *tos;
static size_t tossize;

static struct here_fromstruct *froms;
static size_t fromssize;
static size_t fromlimit;
static size_t fromidx;

static uintptr_t lowpc;
static uintptr_t highpc;
static size_t textsize;
static unsigned int hashfraction;
static unsigned int log_hashfraction;

/* This is the information about the mmaped memory. */
static struct gmon_hdr *addr;
static off_t expected_size;

/* See profil(2) where this is described. */
static int s_scale;
#define SCALE_1_TO_1 0x10000L



/* Set up profiling data to profile object desribed by MAP. The output
Expand All @@ -194,6 +183,14 @@ _dl_start_profile (struct link_map *map, const char *output_dir)
struct gmon_hist_hdr hist_hdr;
char *hist, *cp;
size_t idx;
size_t tossize;
size_t fromssize;
uintptr_t highpc;
struct gmon_hdr *addr = NULL;
off_t expected_size;
/* See profil(2) where this is described. */
int s_scale;
#define SCALE_1_TO_1 0x10000L

/* Compute the size of the sections which contain program code. */
for (ph = map->l_phdr; ph < &map->l_phdr[map->l_phnum]; ++ph)
Expand Down

0 comments on commit 128e2b0

Please sign in to comment.