Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2623862pxb; Sun, 17 Oct 2021 20:49:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKxUIfjHiqhFifnFjxclo+6CvvC+sjFfAdc28fn8xjNlWqpVAy4dU2rPKAFWwExePVK1hD X-Received: by 2002:a62:804a:0:b0:44c:5bfd:7765 with SMTP id j71-20020a62804a000000b0044c5bfd7765mr26162851pfd.83.1634528958653; Sun, 17 Oct 2021 20:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528958; cv=none; d=google.com; s=arc-20160816; b=rjPcQiajOOWpsbdLH1w8yRrcT2PRlZpzL5Ornd7Pt/b6mEhCc7fZlB6/62n/6Qw3Gw 4HzfCWOWPOvwCnGdA4BAfokLsFVvk3hcV87TnvI7f4LerJ9MFwE6K2w6PqX44jUXib1E nsJ0CFp8gR3+yeVUZGICvrA/kXoMVjg0kf3+eLpnlAHo7gJWiq/3Y0E8QuY5H/Cyipk7 sZgT2UunH9EThbvBYKBhNtvFTkolR4enIyuK3qRE9Oc1L9GydS1Jo7pw0jjNyF+CBIfz HD58TSobUeaPYiX6qKuy+PWKUQLQbY4/tBxQ1CobmmGoWVnUlRxYd44c5nCFegV/GRz0 0zeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=aPA6TEOiOecP1q/60zbo9eREgBgRcpJtcLJc0CzBGS0=; b=nAaArblGDbxP921M4hgUU55L3uOVs5VG4viYYzrPYNjZxr9JZLfjy37umY0So40b5b HZhPpom3ir1Wy3Iqz0SQ8P1zvN5SpSi66TgcBlt4OIHL5q6NxIUJ4eaXfIQLg/iagOdl cjyIE2UbvneAs3pf030UoEbFQwGnJ15xwabAHwL6yMXT+kvQcq6EhD5Zj69uXD4oWrXL aUNnUCUi37rnCfJF+KXAi++afUI5z5QsvQxXZ94LEoQXfh4ky4BGckwQEDPY3+0BaM3L 9jtmJ/YGZ+qhnHO+z2AttSdn14OQk2XQWeko+dpfUIe5HfH4Ieu+xiGDyAbBAusDldGP aGYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RmvEBT1X; 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 l18si4695718pgt.8.2021.10.17.20.48.58; Sun, 17 Oct 2021 20:49:18 -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=20210112 header.b=RmvEBT1X; 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 S1344977AbhJRCsP (ORCPT + 98 others); Sun, 17 Oct 2021 22:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243029AbhJRCsP (ORCPT ); Sun, 17 Oct 2021 22:48:15 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF021C06161C for ; Sun, 17 Oct 2021 19:46:04 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id t16so64808053eds.9 for ; Sun, 17 Oct 2021 19:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=aPA6TEOiOecP1q/60zbo9eREgBgRcpJtcLJc0CzBGS0=; b=RmvEBT1Xwde4bQaDoADfZ1CZaUnYJzHptFf/RvIx7WWBRQxtaEeNTE8ALCeU6VtShY X1OADI6f9uuTgqeQeuHKTmkcN4H5ZDBnLBF/3wKvleSNcez8YP22vQbyx2eomJsDGqLU u0dLyLFqugqxul9Qn0aAmXpAZviptgjkvhInxawPxbU6bjnYn1v6AKVo45CrmtDWjmpF v5N6M50SzTthsC1DGWi6oaZMwiBMJyPVE6ml1ZHT9qrjlCaC7Aj463cr/jSG7gNPKQmr W6JlS+fBqUrcPVasFn4p6FkkPpzMZvH+o2HQ120ZMbuBZp0Nyc6pFVEgD+v8hgzeMbrG 6k7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=aPA6TEOiOecP1q/60zbo9eREgBgRcpJtcLJc0CzBGS0=; b=b1FMb/NvcRBgBfcM66ZBHJ3LSUFBHTqegTX4cqkA2NWi5NP0yrMuy1o4yo34mcbMbM oCVHXYJxP4yFknJIRrkFckdKWsr6kcop6v7xlDviqczk9PDP5UJ4iuwpEYKcMT0Sai3N VROJSX6di20iKoiw6dqQytMviobJ8ugDcrnPYRXlE0qwzqthuQmKqZfqDNpNKrwmt+En C396EiOrI0Acom1Q9TTwuWlhHJm/bNFEPnBN7GPzrdBUL5wQDbYPF1QZ6eqp7Ks/9o9r OLgxUXGAMWFA9530/knyMWdI01+zB1OGcGyTHx6QQ5azAtFKEu19a8m/sZ6+lC7C6O3E 0FPg== X-Gm-Message-State: AOAM533uc1KHyUmy2cgzfQ5a46Ky9m+SipHoVA8s9cDBCjPpdD9EGHeA Avs6d87hCEJ9GAZS6gXDf8DPPVF8bXe1CDtgof8= X-Received: by 2002:a17:906:6a1d:: with SMTP id qw29mr25735905ejc.147.1634525163354; Sun, 17 Oct 2021 19:46:03 -0700 (PDT) MIME-Version: 1.0 From: Dongliang Mu Date: Mon, 18 Oct 2021 10:45:37 +0800 Message-ID: Subject: Any tracing mechanism can track the executed instructions of a user process in the kernel? To: kernelnewbies , linux-kernel Cc: Greg KH , Dan Carpenter , Pavel Skripkin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, I am writing to kindly ask one question: is there any tracing mechanism in Linux kernel that can trace all the executed instructions of a user process? If this user process is run on different processors, traces of this process on different processors should be also recorded. Any comment is welcome. -- My best regards to you. No System Is Safe! Dongliang Mu