From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61922 invoked by alias); 18 Sep 2016 19:58:50 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 61900 invoked by uid 89); 18 Sep 2016 19:58:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=During, stepping, yao, sss X-HELO: mail-oi0-f49.google.com Received: from mail-oi0-f49.google.com (HELO mail-oi0-f49.google.com) (209.85.218.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Sep 2016 19:58:48 +0000 Received: by mail-oi0-f49.google.com with SMTP id r126so170944008oib.0 for ; Sun, 18 Sep 2016 12:58:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Aex++RONs7fZqJ2W7YQ1BixpsCX2bncHn0d8UU8aC9s=; b=R4a24uE8rLsFa95Hi8cuskP1Qe+WHDUDhsuoSU2MGhKqxPi94hmYs4dKtx9D5cPleg IFp0/wRt+9P7O1PD98BuNU1aV5zWhIxOiYTJKAA4FSqjlSZIu9YTG2XLM8VqnUpiCt9c j51IEC0CARbBfo79hYnD75m2HkbvUts8n4hM8AL7h7FkC1iESXh7uI69cA34/tgrFz8m aUem6PEh1kiHjJuMsJRL3tEi7Wa60+rKJY2yk4v4TCrK1wDW+9AVU8d/rvGO9+L5dBjO uk6yzQxGB1lk8hL1FIlTbSJxYBeyK7omyNxfqEpLVELb+pzfVxuUISAWGfj8j09KoTef 7U0g== X-Gm-Message-State: AE9vXwOmViNmL6b7H8UeHFhPSd+wflgNV1TmW1OmYpEnSJ+UNqRowksuoGdeeWK23lG20LIepwqhOnatlwclWw== X-Received: by 10.202.3.66 with SMTP id 63mr26461928oid.26.1474228726539; Sun, 18 Sep 2016 12:58:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.242.68 with HTTP; Sun, 18 Sep 2016 12:58:45 -0700 (PDT) In-Reply-To: <3fdb7193-60c7-49c9-ccf5-bc040aa157ea@redhat.com> References: <20160831171406.24057-1-antoine.tremblay@ericsson.com> <20160831171406.24057-2-antoine.tremblay@ericsson.com> <3fdb7193-60c7-49c9-ccf5-bc040aa157ea@redhat.com> From: Yao Qi Date: Sun, 18 Sep 2016 19:58:00 -0000 Message-ID: Subject: Re: [PATCH 2/2] Enable range stepping for ARM on GDBServer To: Pedro Alves Cc: Antoine Tremblay , "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00197.txt.bz2 On Wed, Aug 31, 2016 at 7:39 PM, Pedro Alves wrote: > On 08/31/2016 07:15 PM, Antoine Tremblay wrote: > > It sounds like gdbserver's event starvation avoidance isn't really > working on sss targets with range stepping enabled. E.g., are we > doing the randomization too late? > We only randomize the events to be reported to GDB, however, we don't randomize the pending events. Every time, GDBserver select pending events from the first one in thread list, threads in the end of the list are likely starved. This issue can be fixed by introducing pending events randomization. My patches are ready, and being regression tested. During the regression tests, some other issues are found (without my patches), so I need to take a look at them first. --=20 Yao (=E9=BD=90=E5=B0=A7)