aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events_filter.c
AgeCommit message (Expand)AuthorFilesLines
2023-11-01tracing: Have trace_event_file have ref countersSteven Rostedt (Google)1-0/+3
2023-09-01tracing/filters: Fix coding style issuesValentin Schneider1-2/+4
2023-09-01tracing/filters: Change parse_pred() cpulist ternary into an if blockValentin Schneider1-2/+6
2023-09-01tracing/filters: Fix double-free of struct filter_pred.maskValentin Schneider1-0/+1
2023-09-01tracing/filters: Fix error-handling of cpulist parsing bufferValentin Schneider1-2/+8
2023-08-22tracing/filters: Further optimise scalar vs cpumask comparisonValentin Schneider1-6/+20
2023-08-22tracing/filters: Optimise CPU vs cpumask filtering when the user mask is a si...Valentin Schneider1-2/+7
2023-08-22tracing/filters: Optimise scalar vs cpumask filtering when the user mask is a...Valentin Schneider1-1/+6
2023-08-22tracing/filters: Optimise cpumask vs cpumask filtering when user mask is a si...Valentin Schneider1-1/+34
2023-08-22tracing/filters: Enable filtering the CPU common field by a cpumaskValentin Schneider1-0/+14
2023-08-22tracing/filters: Enable filtering a scalar field by a cpumaskValentin Schneider1-11/+81
2023-08-22tracing/filters: Enable filtering a cpumask field by another cpumaskValentin Schneider1-2/+95
2023-08-22tracing/filters: Dynamically allocate filter_pred.regexValentin Schneider1-25/+39
2023-01-25tracing: Add a way to filter function addresses to function namesSteven Rostedt (Google)1-1/+92
2023-01-25tracing/filter: fix kernel-doc warningsRandy Dunlap1-4/+4
2022-09-26tracing/filter: Call filter predicate functions directly via a switch statementSteven Rostedt (Google)1-73/+157
2022-09-26tracing: Move struct filter_pred into trace_events_filter.cSteven Rostedt (Google)1-0/+13
2022-05-26tracing: Fix comments of create_filter()sunliming1-1/+1
2022-01-14tracing: Add ustring operation to filtering string pointersSteven Rostedt1-24/+57
2022-01-13tracing: Add test for user space strings when filtering on string pointersSteven Rostedt1-3/+63
2021-12-06tracing: Support __rel_loc relative dynamic data location attributeMasami Hiramatsu1-2/+30
2021-03-25tracing: Update create_system_filter() kernel-doc commentQiujun Huang1-2/+3
2021-03-25tracing: A minor cleanup for create_system_filter()Qiujun Huang1-4/+3
2021-03-24kernel: trace: Mundane typo fixes in the file trace_events_filter.cBhaskar Chowdhury1-1/+1
2021-03-23tracing: Fix various typos in commentsIngo Molnar1-2/+2
2020-11-16tracing: Clean up after filter logic rewritingLukas Bulwahn1-21/+0
2020-11-10tracing: Fix some typos in commentsQiujun Huang1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-2/+2
2019-12-19tracing: Avoid memory leak in process_system_preds()Keita Suzuki1-1/+1
2019-09-28tracing: Have error path in predicate_parse() free its allocated memoryNavid Emamdoost1-2/+4
2019-07-18Merge tag 'trace-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-0/+3
2019-07-16tracing: Let filter_assign_type() detect FILTER_PTR_STRINGCong Wang1-0/+3
2019-05-28tracing: Avoid memory leak in predicate_parse()Tomas Bortoli1-2/+6
2019-05-08tracing: Fix white space issues in parse_pred() functionColin Ian King1-24/+24
2019-04-08tracing: Have the error logs show up in the proper instancesSteven Rostedt (VMware)1-2/+2
2019-04-08tracing: Add trace_array parameter to create_event_filter()Steven Rostedt (VMware)1-11/+14
2019-04-02tracing: Use tracing error_log with trace event filtersTom Zanussi1-2/+9
2019-03-11Merge tag 'trace-v5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-0/+7
2019-03-01tracing: Fix event filters and triggers to handle negative numbersPavel Tikhomirov1-1/+4
2019-02-15ftrace: Allow enabling of filters via index of available_filter_functionsSteven Rostedt (VMware)1-0/+5
2019-02-06tracing: Add comment to predicate_parse() about "&&" or "||"Steven Rostedt (VMware)1-0/+1
2019-02-06tracing: Annotate implicit fall through in predicate_parse()Mathieu Malaterre1-0/+1
2018-12-26Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-2/+2
2018-12-11tracing: Fix memory leak in create_filter()Steven Rostedt (VMware)1-1/+4
2018-11-27tracing: Replace synchronize_sched() and call_rcu_sched()Paul E. McKenney1-2/+2
2018-08-16tracing: Add SPDX License format tags to tracing filesSteven Rostedt (VMware)1-14/+1
2018-08-10tracing: Fix synchronizing to event changes with tracepoint_synchronize_unreg...Steven Rostedt (VMware)1-7/+8
2018-07-03tracing: Make create_filter() code match the commentsSteven Rostedt (VMware)1-0/+5
2018-06-21tracing: Check for no filter when processing event filtersSteven Rostedt (VMware)1-1/+9
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-3/+3
2018-05-29tracing: Have zero size length in filter logic be full stringSteven Rostedt (VMware)1-11/+12
2018-05-11tracing: Fix regex_match_front() to not over compare the test stringSteven Rostedt (VMware)1-0/+3
2018-04-25tracing: Fix kernel crash while using empty filter with perfRavi Bangoria1-7/+7
2018-04-11tracing: Enforce passing in filter=NULL to create_filter()Steven Rostedt (VMware)1-14/+10
2018-04-11tracing: Use ARRAY_SIZE() macro instead of open coding itJérémy Lefaure1-1/+1
2018-04-06tracing: Add rcu dereference annotation for test func that touches filter->progSteven Rostedt (VMware)1-1/+6
2018-04-06tracing: Add rcu dereference annotation for filter->progSteven Rostedt (VMware)1-1/+2
2018-03-14tracing: Rewrite filter logic to be simpler and fasterSteven Rostedt (VMware)1-1187/+974
2018-03-14tracing: Clean up and document pred_funcs_##type creation and useSteven Rostedt (VMware)1-14/+32
2018-03-14tracing: Combine enum and arrays into single macro in filter codeSteven Rostedt (VMware)1-64/+48
2018-03-10tracing: Embed replace_filter_string() helper functionSteven Rostedt (VMware)1-18/+9
2018-03-10tracing: Only add filter list when neededSteven Rostedt (VMware)1-13/+14
2018-03-10tracing: Remove filter allocator helperSteven Rostedt (VMware)1-10/+2
2018-03-10tracing: Use trace_seq instead of open code string appendingSteven Rostedt (VMware)1-34/+23
2018-03-10tracing: Remove BUG_ON() from append_filter_string()Steven Rostedt (VMware)1-1/+2
2018-02-08tracing: Fix parsing of globs with a wildcard at the beginningSteven Rostedt (VMware)1-5/+4
2017-09-13mm: treewide: remove GFP_TEMPORARY allocation flagMichal Hocko1-1/+1
2017-08-24tracing: Fix freeing of filter in create_filter() when set_str is falseSteven Rostedt (VMware)1-0/+4
2016-11-14tracing/filter: Define op as the enum that it isSteven Rostedt (Red Hat)1-10/+12
2016-11-14tracing: Optimise comparison filters and fix binary and for 64 bitSteven Rostedt (Red Hat)1-32/+48
2016-11-14ftrace: Support full glob matchingMasami Hiramatsu1-1/+16
2016-05-03tracing: Use temp buffer when filtering eventsSteven Rostedt (Red Hat)1-0/+10
2016-05-02tracing: Remove TRACE_EVENT_FL_USE_CALL_FILTER logicSteven Rostedt (Red Hat)1-61/+10
2016-03-08tracing: Make ftrace_event_field checking functions availableTom Zanussi1-12/+0
2016-03-04tracing: Do not have 'comm' filter override event 'comm' fieldSteven Rostedt (Red Hat)1-6/+7
2015-11-02tracing: is_legal_op() can return booleanYaowei Bai1-4/+4
2015-08-11tracing: Allow triggers to filter for CPU ids and process namesDaniel Wagner1-2/+52
2015-06-26Merge tag 'trace-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-43/+43
2015-06-26Merge tag 'trace-fixes-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+9
2015-06-25kernel/trace/trace_events_filter.c: use strreplace()Rasmus Villemoes1-3/+2
2015-06-25tracing/filter: Do not allow infix to exceed end of stringSteven Rostedt (Red Hat)1-0/+6
2015-06-25tracing/filter: Do not WARN on operand count going below zeroSteven Rostedt (Red Hat)1-1/+3
2015-06-17tracing: Have filter check for balanced opsSteven Rostedt1-2/+9
2015-05-13tracing: Rename ftrace_raw_##call event structures to trace_event_raw_##callSteven Rostedt (Red Hat)1-1/+1
2015-05-13tracing: Rename FTRACE_EVENT_FL_* flags to EVENT_FILE_FL_*Steven Rostedt (Red Hat)1-5/+5
2015-05-13tracing: Rename struct ftrace_subsystem_dir to trace_subsystem_dirSteven Rostedt (Red Hat)1-5/+5
2015-05-13tracing: Rename ftrace_event_{call,class} to trace_event_{call,class}Steven Rostedt (Red Hat)1-17/+17
2015-05-13tracing: Rename ftrace_event_file to trace_event_fileSteven Rostedt (Red Hat)1-15/+15
2014-12-03tracing: Allow NOT to filter AND and OR clausesSteven Rostedt (Red Hat)1-4/+5
2014-12-03tracing: Add NOT to filtering logicSteven Rostedt (Red Hat)1-2/+18
2014-07-16tracing: Kill "filter_string" arg of replace_preds()Oleg Nesterov1-6/+3
2014-07-16tracing: Change apply_subsystem_event_filter() paths to check file->system ==...Oleg Nesterov1-23/+16
2014-07-16tracing: Kill call_filter_disable()Oleg Nesterov1-6/+1
2014-07-16tracing: Kill destroy_call_preds()Oleg Nesterov1-6/+0
2014-07-16tracing: Kill destroy_preds() and destroy_file_preds()Oleg Nesterov1-20/+0
2013-12-21tracing: Add and use generic set_trigger_filter() implementationTom Zanussi1-0/+12
2013-11-05tracing: Update event filters for multibufferTom Zanussi1-39/+179
2013-07-29tracing: Change event_filter_read/write to verify i_private != NULLOleg Nesterov1-11/+6
2013-07-18tracing: Use trace_seq_puts()/trace_seq_putc() where possiblezhangwei(Jovi)1-2/+2
2013-06-19tracing: Add binary '&' filter for eventsSteven Rostedt1-0/+6
2013-05-15tracing: Fix leaks of filter predsSteven Rostedt (Red Hat)1-0/+4
2013-03-15tracing: Move find_event_field() into trace_events.czhangwei(Jovi)1-28/+1
2013-03-15tracing: Separate out trace events from global variablesSteven Rostedt1-2/+3
2012-10-31tracing: Replace strict_strto* with kstrto*Daniel Walter1-2/+2
2012-08-07tracing/filter: Add missing initializationJiri Olsa1-1/+1
2012-02-21ftrace, perf: Add filter support for function trace eventJiri Olsa1-6/+159
2012-02-21ftrace: Allow to specify filter field type for ftrace eventsJiri Olsa1-1/+6
2012-02-13tracing/trivial: Use kcalloc instead of kzalloc to allocate arrayThomas Meyer1-4/+3
2011-12-21tracing: Factorize filter creationTejun Heo1-141/+142
2011-12-06Merge branch 'perf/urgent' into perf/coreIngo Molnar1-3/+3
2011-12-05tracing: Restore system filter behaviorLi Zefan1-1/+6
2011-12-01trace_events_filter: Use rcu_assign_pointer() when setting ftrace_event_call-...Tejun Heo1-3/+3
2011-11-04tracing: Add boiler plate for subsystem filterSteven Rostedt1-7/+19
2011-11-02tracing: Restore system filter behaviorLi Zefan1-1/+6
2011-08-30tracing: Add preempt disable for filter self testSteven Rostedt1-0/+6
2011-08-19tracing/filter: Add startup tests for events filterJiri Olsa1-0/+209
2011-08-19tracing/filter: Change filter_match_preds function to use walk_pred_treeJiri Olsa1-66/+58
2011-08-19tracing/filter: Change fold_pred function to use walk_pred_treeJiri Olsa1-35/+33
2011-08-19tracing/filter: Change fold_pred_tree function to use walk_pred_treeJiri Olsa1-45/+20
2011-08-19tracing/filter: Change count_leafs function to use walk_pred_treeJiri Olsa1-33/+14
2011-08-19tracing/filter: Unify predicate tree walking, change check_pred_tree function...Jiri Olsa1-51/+86
2011-08-19tracing/filter: Simplify tracepoint event lookupJiri Olsa1-6/+3
2011-08-19tracing/filter: Remove field_name from filter_pred structJiri Olsa1-41/+12
2011-08-19tracing/filter: Separate predicate init and filter additionJiri Olsa1-33/+23
2011-08-19tracing/filter: Use static allocation for filter predicatesJiri Olsa1-41/+16
2011-07-07tracing: Fix bug when reading system filters on module removalSteven Rostedt1-0/+6
2011-03-18trace, filters: Initialize the match variable in process_ops() properlyIngo Molnar1-1/+1
2011-02-07tracing/filter: Remove synchronize_sched() from __alloc_preds()Steven Rostedt1-23/+7
2011-02-07tracing/filter: Swap entire filter of eventsSteven Rostedt1-105/+146
2011-02-07tracing/filter: Optimize filter by folding the treeSteven Rostedt1-9/+224
2011-02-07tracing/filter: Check the created pred treeSteven Rostedt1-1/+71
2011-02-07tracing/filter: Optimize short ciruit checkSteven Rostedt1-3/+9
2011-02-07tracing/filter: Use a tree instead of stack for filter_match_preds()Steven Rostedt1-45/+186
2011-02-07tracing/filter: Free pred array on disabling of filterSteven Rostedt1-0/+4
2011-02-07tracing/filter: Allocate the preds in an arraySteven Rostedt1-22/+9
2011-02-07tracing/filter: Call synchronize_sched() just once for system filtersSteven Rostedt1-17/+63
2011-02-07tracing/filter: Dynamically allocate predsSteven Rostedt1-35/+108
2011-02-07tracing/filter: Move OR and AND logic out of fn() methodSteven Rostedt1-32/+19
2011-02-07tracing/filter: Have no filter return a matchSteven Rostedt1-1/+6
2010-06-28tracing: Remove test of NULL define_fields callbackLi Zefan1-9/+0
2010-06-28tracing: Don't allocate common fields for every trace eventsLi Zefan1-3/+15
2010-05-18Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...Steven Rostedt1-1/+1
2010-05-14tracing: Combine event filter_active and enable into single flags fieldSteven Rostedt1-5/+5
2010-05-14tracing: Remove duplicate id information in event structureSteven Rostedt1-1/+1
2010-05-14tracing: Move fields from event to class structureSteven Rostedt1-4/+6
2010-05-14tracing: Create class struct for eventsSteven Rostedt1-3/+3
2010-05-06perf: Fix check at end of event searchDan Carpenter1-1/+1
2010-03-30include cleanup: Update gfp.h and slab.h includes to prepare for breaking imp...Tejun Heo1-0/+1
2010-01-29Merge branch 'perf/urgent' into perf/coreIngo Molnar1-9/+20
2010-01-14tracing/filters: Add comment for match callbacksLi Zefan1-1/+12
2010-01-14tracing/filters: Fix MATCH_FULL filter matching for PTR_STRINGLi Zefan1-4/+3
2010-01-14tracing/filters: Fix MATCH_MIDDLE_ONLY filter matchingLi Zefan1-1/+1
2010-01-14tracing/filters: Fix MATCH_END_ONLY filter matchingLi Zefan1-2/+3
2010-01-14tracing/filters: Fix MATCH_FRONT_ONLY filter matchingLi Zefan1-1/+1
2009-12-28perf events: Remove CONFIG_EVENT_PROFILELi Zefan1-2/+2
2009-10-29tracing/filters: Fix to make system filter workLi Zefan1-1/+1
2009-10-15tracing/events: Fix locking imbalance in the filter codeIngo Molnar1-11/+15
2009-10-15tracing/profile: Add filter supportLi Zefan1-26/+107
2009-10-15tracing/filters: Use a different op for glob matchLi Zefan1-31/+28
2009-10-15tracing/filters: Refactor subsystem filter codeLi Zefan1-79/+45
2009-10-13Merge branch 'tracing/urgent' into tracing/coreIngo Molnar1-1/+2
2009-10-13tracing/filters: Fix memory leak when setting a filterLi Zefan1-1/+2
2009-09-24tracing/filters: Unify the regex parsing helpersFrederic Weisbecker1-11/+9
2009-09-24tracing/filters: Provide basic regex supportFrederic Weisbecker1-16/+139
2009-09-24tracing/filters: Cleanup useless headersFrederic Weisbecker1-2/+0
2009-09-09tracing: move PRED macros to trace_events_filter.cLi Zefan1-0/+41
2009-09-04tracing/filters: Defer pred allocation, fix memory leakLi Zefan1-5/+6
2009-08-31tracing/filters: Defer pred allocationLi Zefan1-9/+41
2009-08-26tracing/filters: Support filtering for char * stringsLi Zefan1-3/+23
2009-08-26tracing/filters: Add __field_ext() to TRACE_EVENTLi Zefan1-6/+0
2009-08-26tracing/filters: Add filter_type to struct ftrace_event_fieldLi Zefan1-9/+14
2009-08-08tracing/filters: Don't use pred on alloc failureTom Zanussi1-0/+2
2009-07-20tracing/filters: improve subsystem filterLi Zefan1-42/+82
2009-07-20tracing/events: record the size of dynamic arraysLi Zefan1-2/+4
2009-07-10tracing/filter: Remove preds from struct event_subsystemXiao Guangrong1-33/+6
2009-06-16tracing/filters: fix race between filter setting and module unloadLi Zefan1-17/+10
2009-06-16tracing/filters: free filter_string in destroy_preds()Li Zefan1-0/+1
2009-06-15tracing/filters: strloc should be unsigned shortLi Zefan1-1/+1
2009-06-15tracing/filters: operand can be negativeLi Zefan1-1/+6
2009-06-01tracing/events: introduce __dynamic_array()Li Zefan1-3/+3
2009-05-14tracing/filters: fix off-by-one bugLi Zefan1-1/+1
2009-05-14tracing/filters: add missing unlock in a failure pathLi Zefan1-4/+6
2009-05-07tracing/events: fix concurrent access to ftrace_events list, fixLi Zefan1-2/+3
2009-05-07tracing/filters: support for operator reserved characters in stringsFrederic Weisbecker1-0/+10
2009-05-07tracing/filters: support for filters of dynamic sized arraysFrederic Weisbecker1-3/+41
2009-05-06tracing/events: fix concurrent access to ftrace_events listLi Zefan1-3/+7
2009-05-06tracing/events: fix memory leak when unloading moduleLi Zefan1-7/+15
2009-04-29tracing/filters: a better event parserTom Zanussi1-224/+796
2009-04-29tracing/filters: move preds into event_filter objectTom Zanussi1-41/+66
2009-04-21tracing/filters: allow user-input to be integer-like stringLi Zefan1-14/+12
2009-04-17tracing/filters: add filter_mutex to protect filter predicatesTom Zanussi1-20/+70
2009-04-14tracing/events: add export symbols for trace events in modulesSteven Rostedt1-0/+2
2009-04-14tracing/events: convert event call sites to use a link listSteven Rostedt1-4/+4
2009-04-14tracing/filters: allow on-the-fly filter switchingTom Zanussi1-120/+132
2009-04-14Merge branch 'linus' into tracing/coreIngo Molnar1-4/+10
2009-04-14tracing/filters: add run-time field descriptions to TRACE_EVENT_FORMAT eventsTom Zanussi1-2/+2
2009-04-12tracing/filters: return proper error code when writing filter fileLi Zefan1-2/+2
2009-04-12tracing/filters: allow user input integer to be oct or hexLi Zefan1-2/+3
2009-04-12tracing/filters: fix NULL pointer dereferenceLi Zefan1-0/+5
2009-03-24tracing/filters: disallow integer values for string filters and vice versaTom Zanussi1-0/+5