From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20887 invoked by alias); 13 Oct 2014 16:49:40 -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 20872 invoked by uid 89); 13 Oct 2014 16:49:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f172.google.com Received: from mail-vc0-f172.google.com (HELO mail-vc0-f172.google.com) (209.85.220.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 13 Oct 2014 16:49:38 +0000 Received: by mail-vc0-f172.google.com with SMTP id lf12so6143944vcb.17 for ; Mon, 13 Oct 2014 09:49:36 -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:date :message-id:subject:from:to:cc:content-type; bh=qGOwOPAp5znJ4201pJey0gsFfnJZMVN26p4xmNV/XIg=; b=A1LrxOj8cTe0D1cCrUiPruxoo/KOhTyuDiMu+dEeQF0QmEk/E05gOwgRVqfRzmmhAh lsV3vjSELNI7xGTuuZcm/foYeqhNy8nmfQJEy81F1KoAhcuoKQjXWU7xjPbfmMvL4zip wSnJEDgZ4byiUatZDvs9QxEkP2aOmU+gJbJo6nUOX9botodDcIOpr6FQQ8TmF5RbpJX2 j7WvXbF5eFyZlLl978FEXbSp1iFcLSkw+lN+55QyWiJqeKY+nUbukKJsxmxR73UqTGdd KHkr/FORVxGcMvRUOPIGGmsVX5LY9BV5hoacPu2Bpouz0H5B3UCG2axDOSPXGjGbS7xU Lj7Q== X-Gm-Message-State: ALoCoQlvgO4kV9h8r165o31IIPn3NL4YPhAx7eH7s5UOiBkYmkTfxE23yi8yVw6c3AwLTLWgrEz7 MIME-Version: 1.0 X-Received: by 10.220.91.136 with SMTP id n8mr2600198vcm.57.1413218975968; Mon, 13 Oct 2014 09:49:35 -0700 (PDT) Received: by 10.52.161.132 with HTTP; Mon, 13 Oct 2014 09:49:35 -0700 (PDT) In-Reply-To: <87k34555se.fsf@anubis.Home> References: <1412736678-2760-1-git-send-email-gabriel@krisman.be> <1412736678-2760-3-git-send-email-gabriel@krisman.be> <87h9zebcsb.fsf@redhat.com> <87siiy9vis.fsf@redhat.com> <87k34555se.fsf@anubis.Home> Date: Mon, 13 Oct 2014 16:49:00 -0000 Message-ID: Subject: Re: [RFC PATCH 2/3] Add support to catch groups of syscalls. From: Doug Evans To: Gabriel Krisman Bertazi Cc: Sergio Durigan Junior , gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00323.txt.bz2 On Sun, Oct 12, 2014 at 2:36 PM, Gabriel Krisman Bertazi wrote: > Using -g to specify syscall groups, as Sergio said, has also the > advantage of providing us with an intuitive command to list available > syscall groups, by saying "catch syscall -g" with no arguments. That can't work as "catch syscall" catches all syscalls, and it would be confusing to have "catch syscall" catch all syscalls whereas "catch syscall -g" just lists syscall groups. > So, my vote goes to using '-g' for each syscall group we want to > catch. Is that ok for you, guys? Would you still allow "catch syscall open -g network"? I'm not really comfortable with that (far more so than "catch syscall open network-group"). If you want to require -g at the front, and thus disallow catching both syscalls and syscall groups in the same command then that would be fine with me. Still need a solution for listing them. Arguably since we don't provide a way to list syscalls (sigh, modulo the hack I showed, which should be fixed so that it no longer works anyways :-)), providing a way to list syscall groups is for a separate patch. Kudos if you still want to provide a way to list syscalls and groups though.