Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: David Miller <davem@davemloft.net>
Cc: gdb-patches@sourceware.org, stan@codesourcery.com, kcy@codesourcery.com
Subject: Re: [PATCH] Fix 'info os' crashes on sparc.
Date: Tue, 20 Nov 2012 14:44:00 -0000	[thread overview]
Message-ID: <50AB9757.20204@redhat.com> (raw)
In-Reply-To: <20121120.011339.2105774812993461488.davem@davemloft.net>

On 11/20/2012 06:13 AM, David Miller wrote:

> The thing is, this code still has a problem.  The number of cpus
> active doesn't tell us anything about what the largest cpu number
> might be.
> 
> The cpus numbers themselves can be arbitrarily sparse and beyond the
> number of cpus.
> 
> And it's the cpu numbers that are used to index these various tables.
> 

Indeed.

> gdb/
> 
> 2012-11-19  David S. Miller  <davem@davemloft.net>
> 
> 	* common/linux-osdata.c (get_number_of_cpu_cores): Delete.
> 	(linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
> 	sysconf.
> 	(get_cores_used_by_process): Update comment.

OK.  Thanks.

-- 
Pedro Alves


  reply	other threads:[~2012-11-20 14:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20121120.003006.1287326526424655175.davem@davemloft.net>
2012-11-20  6:13 ` David Miller
2012-11-20 14:44   ` Pedro Alves [this message]
2012-11-20 17:41     ` David Miller

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=50AB9757.20204@redhat.com \
    --to=palves@redhat.com \
    --cc=davem@davemloft.net \
    --cc=gdb-patches@sourceware.org \
    --cc=kcy@codesourcery.com \
    --cc=stan@codesourcery.com \
    /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