Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753364AbaAGR5G (ORCPT ); Tue, 7 Jan 2014 12:57:06 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.226]:38206 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753007AbaAGR46 (ORCPT ); Tue, 7 Jan 2014 12:56:58 -0500 Date: Tue, 7 Jan 2014 12:56:55 -0500 From: Steven Rostedt To: Tom Zanussi Cc: masami.hiramatsu.pt@hitachi.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] tracing/triggers: A couple minor variable name changes Message-ID: <20140107125655.20cd27d6@gandalf.local.home> In-Reply-To: <1389115745.3040.104.camel@empanada> References: <20140106161347.4cc82a4b@gandalf.local.home> <1389055673.3040.83.camel@empanada> <20140106205034.53c219cc@gandalf.local.home> <1389063069.3040.90.camel@empanada> <20140106222703.5e7dbba2@gandalf.local.home> <1389115745.3040.104.camel@empanada> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/hn4SXDx1HETIb2UFJNi_i=b" X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --MP_/hn4SXDx1HETIb2UFJNi_i=b Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, 07 Jan 2014 11:29:05 -0600 Tom Zanussi wrote: > Just so you know what encompasses my 'normal testing', below is what I > normally run through - if everything checks out, I'm satisfied things > are basically good, though of course it didn't catch your traceoff bug > so it's not complete. > > As soon as I get the chance, I'll automate it and add more tests for > completeness - as it is it's grown into something that already takes too > long to do manually, so I need to find the time.... > > ---- basic high-level check > - quick enable/disable_event, capture limited number of events > - both counted and not > - verify flags > - verify removal > Thanks, I may look at these in the future to update my tests. I've attached some trigger tests that I just wrote up. ftrace-event-traceon-off : tests the traceon and traceoff triggers. - enables tracing, sets traceoff trigger, checks if it disables - disables tracing, sets traceon trigger, checks if it enables - does a countdown from 3 to make sure the tracing is disabled 3 times. ftrace-event-stacktrace : tests the event stack trace. It - checks enabling of events (non trigger) - checks enabling only the stack trace - checks enabling both the stack trace and events - checks if the count works from 1 2 or 3 times ftrace-event-trigger-event : tests enable/disable_event trigger - checks if the event enables another event (several times) - checks if the event disables another event (several times) - checks if it enables an event count times "1 2 3" - then it tests the filter part of the event trigger (enable only) Feel free to add onto these. -- Steve --MP_/hn4SXDx1HETIb2UFJNi_i=b Content-Type: application/octet-stream; name=ftrace-test-event-stacktrace Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=ftrace-test-event-stacktrace IyEvYmluL2Jhc2gKCmZpbmRfZGVidWdmcygpIHsKICAgIGRlYnVnZnM9YGNhdCAvcHJvYy9tb3Vu dHMgfCB3aGlsZSByZWFkIG1vdW50IGRpciB0eXBlIG9wdHMgYSBiOyBkbwoJaWYgWyAkbW91bnQg PT0gImRlYnVnZnMiIF07IHRoZW4KCSAgICBlY2hvICRkaXI7CgkgICAgYnJlYWsKCWZpCiAgICBk b25lYAogICAgaWYgWyAteiAiJGRlYnVnZnMiIF07IHRoZW4KCWlmICEgbW91bnQgLXQgZGVidWdm cyBub2RldiAvc3lzL2tlcm5lbC9kZWJ1ZzsgdGhlbgoJICAgIGVjaG8gIkZBSUxFRCB0byBtb3Vu dCBkZWJ1Z2ZzIgoJICAgIGV4aXQgLTEKCWZpCgllY2hvICIvc3lzL2tlcm5lbC9kZWJ1ZyIKICAg IGVsc2UKCWVjaG8gJGRlYnVnZnMKICAgIGZpCn0KCmRlYnVnZnM9YGZpbmRfZGVidWdmc2AKVFJB Q0VESVI9IiRkZWJ1Z2ZzL3RyYWNpbmciCkVWRU5URElSPSRUUkFDRURJUi9ldmVudHMKRVZFTlQ9 JEVWRU5URElSL3NjaGVkL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MSBdOyB0aGVuCglzPSdz JwogICAgZWxzZQoJcz0nJwogICAgZmkKICAgIGVjaG8gIkVuYWJsZSBzdGFjayB0cmFjZSBvbmx5 ICRpIHRpbWUkcyIKCiAgICBlY2hvIDAgPiAkVFJBQ0lOR19PTgogICAgZWNobyBzdGFja3RyYWNl OiRpID4gJFRSSUdHRVJfRklMRQogICAgZWNobyAxID4gJEVWRU5UX0VOQUJMRQoKICAgIGVjaG8g MSA+ICRUUkFDSU5HX09OCiAgICBzbGVlcCAxCiAgICBlY2hvIDAgPiAkVFJBQ0lOR19PTgoKICAg IGNoZWNrX2V2ZW50cyAxIDEgJGkKICAgIGRvX3Jlc2V0CmRvbmUKCgplY2hvICcqKiBTVUNDRVNT JwoKZXhpdCAwCg== --MP_/hn4SXDx1HETIb2UFJNi_i=b Content-Type: application/octet-stream; name=ftrace-test-event-traceon-off Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=ftrace-test-event-traceon-off IyEvYmluL2Jhc2gKCmZpbmRfZGVidWdmcygpIHsKICAgIGRlYnVnZnM9YGNhdCAvcHJvYy9tb3Vu dHMgfCB3aGlsZSByZWFkIG1vdW50IGRpciB0eXBlIG9wdHMgYSBiOyBkbwoJaWYgWyAkbW91bnQg PT0gImRlYnVnZnMiIF07IHRoZW4KCSAgICBlY2hvICRkaXI7CgkgICAgYnJlYWsKCWZpCiAgICBk b25lYAogICAgaWYgWyAteiAiJGRlYnVnZnMiIF07IHRoZW4KCWlmICEgbW91bnQgLXQgZGVidWdm cyBub2RldiAvc3lzL2tlcm5lbC9kZWJ1ZzsgdGhlbgoJICAgIGVjaG8gIkZBSUxFRCB0byBtb3Vu dCBkZWJ1Z2ZzIgoJICAgIGV4aXQgLTEKCWZpCgllY2hvICIvc3lzL2tlcm5lbC9kZWJ1ZyIKICAg IGVsc2UKCWVjaG8gJGRlYnVnZnMKICAgIGZpCn0KCmRlYnVnZnM9YGZpbmRfZGVidWdmc2AKVFJB Q0VESVI9IiRkZWJ1Z2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2VyCmNoZWNrX3NsZWVwICIwIgplY2hvICcq KiBURVNUIENPVU5UIHRyYWNlb2ZmICgyKScKZWNobyAxID4gJFRSQUNFRElSL3RyYWNpbmdfb24K Y2hlY2tfc2xlZXAgIjAiCmVjaG8gJyoqIFRFU1QgQ09VTlQgdHJhY2VvZmYgKDEpJwplY2hvIDEg PiAkVFJBQ0VESVIvdHJhY2luZ19vbgpjaGVja19zbGVlcCAiMCIKZWNobyAnKiogVEVTVCBDT1VO VCB0cmFjZW9mZiAoMCknCmVjaG8gMSA+ICRUUkFDRURJUi90cmFjaW5nX29uCmNoZWNrX3NsZWVw ICIxIgplY2hvICIhdHJhY2VvZmY6MCIgPj4gJEVWRU5URElSL3NjaGVkL3NjaGVkX3N3aXRjaC90 cmlnZ2VyCgplY2hvIG5vcCA+ICRUUkFDRURJUi9jdXJyZW50X3RyYWNlcgoKZWNobyAnKiogU1VD Q0VTUycKCmV4aXQgMAo= --MP_/hn4SXDx1HETIb2UFJNi_i=b Content-Type: application/octet-stream; name=ftrace-test-event-trigger-event Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=ftrace-test-event-trigger-event IyEvYmluL2Jhc2gKCmZpbmRfZGVidWdmcygpIHsKICAgIGRlYnVnZnM9YGNhdCAvcHJvYy9tb3Vu dHMgfCB3aGlsZSByZWFkIG1vdW50IGRpciB0eXBlIG9wdHMgYSBiOyBkbwoJaWYgWyAkbW91bnQg PT0gImRlYnVnZnMiIF07IHRoZW4KCSAgICBlY2hvICRkaXI7CgkgICAgYnJlYWsKCWZpCiAgICBk b25lYAogICAgaWYgWyAteiAiJGRlYnVnZnMiIF07IHRoZW4KCWlmICEgbW91bnQgLXQgZGVidWdm cyBub2RldiAvc3lzL2tlcm5lbC9kZWJ1ZzsgdGhlbgoJICAgIGVjaG8gIkZBSUxFRCB0byBtb3Vu dCBkZWJ1Z2ZzIgoJICAgIGV4aXQgLTEKCWZpCgllY2hvICIvc3lzL2tlcm5lbC9kZWJ1ZyIKICAg IG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VOVF9FTkFCTEUKCiAgICBmb3IgeCBpbiBgc2Vx ICRpYDsgZG8KCWVjaG8gIiAgdGVzdCAkeCIKCXNsZWVwIDEKCXRlc3Rfb3RoZXJfZW5hYmxlZCAi MSoiCgllY2hvIDAgPiAkT1RIRVJfRVZFTlRfRU5BQkxFCiAgICBkb25lCgogICAgc2xlZXAgMQog ICAgZWNobyAiTWFrZSBzdXJlIGl0IGRpZG4ndCBkbyBpdCBmb3IgbW9yZSIKICAgIHRlc3Rfb3Ro ZXJfZW5hYmxlZCAiMCoiCgogICAgZG9fcmVzZXQKZG9uZQoKZWNobyAiTm93IHRlc3RpbmcgZmls dGVyIgoKc2xlZXAgMTAwJgp4PWBqb2JzIC1sYApwaWQ9YGVjaG8gJHggfCBjdXQgLWQnICcgLWYy YAoKZWNobyAiZW5hYmxlX2V2ZW50OiRPVEhFUiBpZiBwaWQ9PSRwaWQiID4gJFRSSUdHRVJfRklM RQoKdGVzdF9vdGhlcl9lbmFibGVkICIwKiIKc2xlZXAgMQp0ZXN0X290aGVyX2VuYWJsZWQgIjAq IgpzbGVlcCAxCmtpbGwgJHBpZApzbGVlcCAxCnRlc3Rfb3RoZXJfZW5hYmxlZCAiMSoiCgpkb19y ZXNldAoKZWNobyAnKiogU1VDQ0VTUycKCmV4aXQgMAo= --MP_/hn4SXDx1HETIb2UFJNi_i=b-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/