From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753319AbaDERvD (ORCPT ); Sat, 5 Apr 2014 13:51:03 -0400 Received: from one.firstfloor.org ([193.170.194.197]:56009 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753230AbaDERvC (ORCPT ); Sat, 5 Apr 2014 13:51:02 -0400 Date: Sat, 5 Apr 2014 19:50:59 +0200 From: Andi Kleen To: Jovi Zhangwei Cc: Alexei Starovoitov , Ingo Molnar , Ingo Molnar , Steven Rostedt , Masami Hiramatsu , Greg KH , Andi Kleen , LKML Subject: Re: ktap and ebpf integration Message-ID: <20140405175059.GT22728@two.firstfloor.org> References: <20140404074800.GD1637@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 4) var i = 0; trace *:* { i += 1} > Assign global variable in here, there also can assign other > value not 0, please show me how BPF do this. > (See complex global usage example in samples/schedule/schedtimes.kp) That's what I meant. BPF is essentially a statically typed language. KTAP is dynamically typed. It's a very different model. Yes they are both Turing complete and likely could be somehow translated into each other, but would it be efficient and simple? No. [essentially it's the "UNCOL problem" -- see http://en.wikipedia.org/wiki/UNCOL One size doesn't fit all in immediate languages] -Andi