Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp530417pxb; Fri, 15 Apr 2022 05:31:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5+u9UPFOOlmE02S3c+drTUO8BgRy0rCun0N3gJanV4wjVXCHH4Te2Vn9lM0zlVUQtSGb3 X-Received: by 2002:a17:902:d48b:b0:158:558d:c58a with SMTP id c11-20020a170902d48b00b00158558dc58amr26123871plg.105.1650025919441; Fri, 15 Apr 2022 05:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650025919; cv=none; d=google.com; s=arc-20160816; b=K5Aaoq6rIK29gQG260ZRGCHZUD9c+h93yiHhgvnn52yUULYmCkqtIkNWCbfgxIFgrD MwjfbWjYV4Xo3IbOuXk60dmUeQVFjGy9Af4RZVrFHgrcZb5sMve+/DXgIqcTW21QJvTM XhGh39nM6H6T0VIL2mIQAWacFhrjgeOprO9nGI3sBViqaMqKPlFcDIVf/T8idABoyfwt ypzDnk62I7ozOUyjRERnPcjX4+fTl6Ap1FVZ4Tw5MT6ON1T0SRHhNidbCZn9+Hiq0729 vPX3DasSBt5zXVB75211jVRSDGuG29PzDQ7wqOQhfp/2titE9Ifyys+NpUbOL8XeegpI 2oLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:sender:hmm_source_type:hmm_attache_num:hmm_source_ip; bh=9HiDKmtCaSqvylqeNHP3YZ3jVccWB9AQG2y0ch8NnGo=; b=syzRH4LgIikaOVMXaoRMSATdHZ6WAASPfvbyCMwuH3/aLxnNi7Arhxhmup9JvMr9JX g2MQS7/M7JPNw5zZ5g0NuSN52tXjhLiPri8xJHY0FOvf9ftCGwTjYI2NoqcpQKxVaJR8 JmSKtrbUTOMCXgbtUXKj4B/z27meu76NxUTZMww+q3i7To+zBND9jQRZHljtBiS44tzj fVo+0+vbPiwnhdZoDrP/zpbP7Uh9+hGC2ngpdu607vaRbwJyn/VbmQ8dcEFEjRLzB42c uUljdY8O1P5Cw13wY57Ef4JvG1/Pb1bWhsLT5DFQqSHwOwrhkQeUsezF9MxzpUMHms6K fNmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a170902ef4e00b00153b2d16647si1166428plx.591.2022.04.15.05.31.45; Fri, 15 Apr 2022 05:31:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235928AbiDNL1z (ORCPT + 99 others); Thu, 14 Apr 2022 07:27:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238980AbiDNL1y (ORCPT ); Thu, 14 Apr 2022 07:27:54 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 85E916B098; Thu, 14 Apr 2022 04:25:26 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.31:53300.829768023 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-123.150.8.42 (unknown [10.64.8.31]) by 189.cn (HERMES) with SMTP id 299A6100180; Thu, 14 Apr 2022 19:25:24 +0800 (CST) Received: from ([123.150.8.42]) by gateway-153622-dep-749df8664c-cv9r2 with ESMTP id f4c7d0cadc754fd4ac18aa9e8d26d809 for daniel@iogearbox.net; Thu, 14 Apr 2022 19:25:25 CST X-Transaction-ID: f4c7d0cadc754fd4ac18aa9e8d26d809 X-Real-From: chensong_2000@189.cn X-Receive-IP: 123.150.8.42 X-MEDUSA-Status: 0 Sender: chensong_2000@189.cn Message-ID: Date: Thu, 14 Apr 2022 19:25:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [RFC PATCH 0/1] sample: bpf: introduce irqlat Content-Language: en-US To: Daniel Borkmann , ast@kernel.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <1649927240-18991-1-git-send-email-chensong_2000@189.cn> <2e6ee265-903c-2b5c-aefd-ec24f930c999@iogearbox.net> From: Song Chen In-Reply-To: <2e6ee265-903c-2b5c-aefd-ec24f930c999@iogearbox.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi Daniel, Thanks for liking the idea. My target is embedded devices, that's why i get started from ebpf C.bcc and bpftrace is a good idea, but i prefer taking one thing at a time, what's more, i'm not familiar with python, it might take longer. Once C code is accepted, i will move myself to bcc and bpftrace. Is it ok for you? BR Song 在 2022/4/14 17:47, Daniel Borkmann 写道: > On 4/14/22 11:07 AM, Song Chen wrote: >> I'm planning to implement a couple of ebpf tools for preempt rt, >> including irq latency, preempt latency and so on, how does it sound >> to you? > > Sounds great, thanks! Please add these tools for upstream inclusion > either to bpftrace [0] or > bcc [1], then a wider range of users would be able to benefit from them > as well as they are > also shipped as distro packages and generally more widely used compared > to kernel samples. > > Thanks Song! > >   [0] https://github.com/iovisor/bpftrace/tree/master/tools >   [1] https://github.com/iovisor/bcc/tree/master/libbpf-tools > >> Song Chen (1): >>    sample: bpf: introduce irqlat >> >>   samples/bpf/.gitignore    |   1 + >>   samples/bpf/Makefile      |   5 ++ >>   samples/bpf/irqlat_kern.c |  81 ++++++++++++++++++++++++++++++ >>   samples/bpf/irqlat_user.c | 100 ++++++++++++++++++++++++++++++++++++++ >>   4 files changed, 187 insertions(+) >>   create mode 100644 samples/bpf/irqlat_kern.c >>   create mode 100644 samples/bpf/irqlat_user.c >> > >