Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3278006ybt; Sat, 4 Jul 2020 11:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEVJjIWrPs8TrJfnnVDz0wINtAz4ltc3ydwfBMjW2ynv7q5lo+qt6TX/+fsrGKai9Dc4qz X-Received: by 2002:a17:906:2a5b:: with SMTP id k27mr36048276eje.82.1593887592873; Sat, 04 Jul 2020 11:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593887592; cv=none; d=google.com; s=arc-20160816; b=rY40jQ0JGD3SVEv3wIgeLLxoMBaMkmFAVvLHP1hNm3K0OAqMPgv9ZCQ33YxOSNLabt XYgORpp/a9HeQUDeDovku72QPI0o2l2ub+XQmKK1QbZoWbsVoWx11X1/nFjcyfs41dU7 BgGLETtcynzcyfR6x00YjSdW6l1BrdwKkKFaw6haTxgWWIo9L33Q7AdkdHj9514lxy86 tfpn1gowvYDJMi2/TOiXjjjxeYj/54CrfOd+74Db2KDO0BRu3LlFhzueA2Q59VmUZsnm UEF/pHTtO1rBaCEWctT+LEyFzOY/XEtdDB9ZtrpotqEzNCvZAKxnDLUgGUgEOh/yFOcb STsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UFLUHOIJlWWk7hAI07Y9tp1o5QM5QJCYXSXyL0loMUc=; b=JwUipbe2JPtfbs0G//MU/MCWb17cObW/ZjUAmWMvIGaKzrNW+IfDkgrCIyNuYmm7ZF CoCMtV89jSdoMmsspp5CPbZcz3XHNdJ5BVquxLS5oY3mtkRWB52QuIRrBO275XZ21AEl kTaDVpabb4QeP2aoxGHC4hZMirjv1Z1K0Ttq/KyYrA0seJDvx5HdZTicjcEsnZ7mR1mt G1w6qbazPqF9Nw/Raroh4kctHqs2K8RlHVTgxbgMDp3P+MqbYcjCLM2czelDN8eiri+x o9HFr2lDpFks8o/Qh3lJijl0lQ+4PsmUK3TLFmkgs+W3xuPoe9D+X+nBNWatmSxsF/6w l9OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JtMO7CWw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si9560573ejp.131.2020.07.04.11.32.22; Sat, 04 Jul 2020 11:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JtMO7CWw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgGDSbJ (ORCPT + 99 others); Sat, 4 Jul 2020 14:31:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbgGDSbI (ORCPT ); Sat, 4 Jul 2020 14:31:08 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B571C061794; Sat, 4 Jul 2020 11:31:08 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id j10so26116276qtq.11; Sat, 04 Jul 2020 11:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UFLUHOIJlWWk7hAI07Y9tp1o5QM5QJCYXSXyL0loMUc=; b=JtMO7CWw51DLAx12Q1J7wDQrbMLhCpTUxO44RqG7IexDvBT3q/Ppj/UrQyV4iupDhg /55dybi9z2Ip1geGBwWutbj91Ou1gqVieINEmiTZ/bH6CNGiPnZkVompFBiTVtuq11Hq V3j3XbYzDoCXX0a1Z45umxZsJ9vTklMXVTauHc7pl28MCAE3L8ZT5oqpWlyl8kH4AqRg sY9MO+xVu58iyOk1zqeUZvlJzJ6TWWPwoON8Tj0a+W1xmxpkHPpNjUrMWRiHqWzHkocH Al1Zi/WqxVY6u6iAJbzeukTCQR8CoNp8vQHenRjmpMW/lwnowiYeOsefSlWsrpOpiiZH ovKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UFLUHOIJlWWk7hAI07Y9tp1o5QM5QJCYXSXyL0loMUc=; b=JO+jtpP4PGU2jstLM24AoZck/J2cr3X2mfi3Tkl0iziUe9zPirX2pWVNF85heLQyBX iXWhaVTAvG9967PC6IYtgCD1xTOvDtOCgY3HtiKEVGBHb94/NV3ysOEfcB7+8LfZTZtY XTo7gM+kYkhMRRqubdEJZP6XY8IucY2Ly4LhbBYICg/NYc1gfdnY/KFAbANAbUKS+DpX 5ps3eyyUH/X5OkrIpo4Bu5ETgIIgUAL3fGqghypqLA65C2awO7WvkrEwwzIQ4S62BXrO Quch5if8o6cSGmP3NPpP9ZRzM0IZa8poccGVn/e7qYKtolst9q7+01EsLTjQytkoRmwl PFXg== X-Gm-Message-State: AOAM531ytmlBdxx9Jet2AFNMRl/kSePXUOj+OIETsHff8O/AGNlXmGZm wOQ/GZ8+JJt129KdW7418LN17ndg8r9Rj3chjS0= X-Received: by 2002:ac8:4b5b:: with SMTP id e27mr39335257qts.96.1593887467803; Sat, 04 Jul 2020 11:31:07 -0700 (PDT) MIME-Version: 1.0 References: <1593833659-26224-1-git-send-email-guoren@kernel.org> In-Reply-To: From: Pekka Enberg Date: Sat, 4 Jul 2020 21:30:50 +0300 Message-ID: Subject: Re: [PATCH V1 0/5] riscv: Add k/uprobe supported To: Guo Ren Cc: Palmer Dabbelt , Paul Walmsley , Anup Patel , Greentime Hu , Zong Li , =?UTF-8?Q?Patrick_St=C3=A4hlin?= , bjorn.topel@gmail.com, Atish Patra , linux-riscv , Guo Ren , LKML , linux-csky@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guo, On Sat, Jul 4, 2020 at 6:34 AM wrote: > > > There is no single step exception in riscv ISA, so utilize ebreak to > > > simulate. Some pc related instructions couldn't be executed out of line > > > and some system/fence instructions couldn't be a trace site at all. > > > So we give out a reject list and simulate list in decode-insn.c. On Sat, Jul 4, 2020 at 2:40 PM Pekka Enberg wrote: > > Can you elaborate on what you mean by this? Why would you need a > > single-step facility for kprobes? Is it for executing the instruction > > that was replaced with a probe breakpoint? On Sat, Jul 4, 2020 at 5:55 PM Guo Ren wrote: > It's the single-step exception, not single-step facility! Aah, right, I didn't read the specification carefully enough. Thanks for taking the time to clarify this! FWIW, for the whole series: Reviewed-by: Pekka Enberg - Pekka