linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Miquel van Smoorenburg" <miquels@cistron.nl>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] support for gzipped (ELF) core dumps
Date: Thu, 6 Jan 2005 13:43:00 +0000 (UTC)	[thread overview]
Message-ID: <crjf94$a03$1@news.cistron.nl> (raw)
In-Reply-To: 1105017578.28175.1.camel@borcx178

In article <1105017578.28175.1.camel@borcx178>,
Jan Frey  <jan.frey@nokia.com> wrote:
>I've written a patch for 2.4.28 kernel which enables writing of core
>dump files for ELF binaries in .gz format. This is interesting when
>using and debugging large binaries. In my case core files exceeded 1GB
>and got written via NFS...
>Anyhow, below patch is not really "beautiful", especially CRC looks
>quite annoying here.

>+/* This table is needed for efficient CRC32 calculation */
>+static const unsigned long crc_table[8][256] = {
>+	{
>+		0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL,

You know, this looks exactly the same as lib/crc32table.h ...
I'd consider using lib/crc32.c.

Mike.


  parent reply	other threads:[~2005-01-06 13:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-06 13:19 [PATCH] support for gzipped (ELF) core dumps Jan Frey
2005-01-06 13:30 ` linux-os
2005-01-06 13:43 ` Miquel van Smoorenburg [this message]
2005-01-08 17:27 Shaheed
2005-01-13 11:51 ` Jan Frey
2005-01-13 13:29   ` Shaheed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='crjf94$a03$1@news.cistron.nl' \
    --to=miquels@cistron.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).