2 # SPDX-License-Identifier: GPL-2.0
3 # description: Uprobe event parser error log check
5 [ -f uprobe_events
] || exit_unsupported
# this is configurable
7 [ -f error_log
] || exit_unsupported
9 check_error
() { # command-with-error-pos-by-^
10 ftrace_errlog_check
'trace_uprobe' "$1" 'uprobe_events'
13 check_error
'p ^/non_exist_file:100' # FILE_NOT_FOUND
14 check_error
'p ^/sys:100' # NO_REGULAR_FILE
15 check_error
'p /bin/sh:^10a' # BAD_UPROBE_OFFS
16 check_error
'p /bin/sh:10(^1a)' # BAD_REFCNT
17 check_error
'p /bin/sh:10(10^' # REFCNT_OPEN_BRACE
18 check_error
'p /bin/sh:10(10)^a' # BAD_REFCNT_SUFFIX
20 check_error
'p /bin/sh:10 ^@+ab' # BAD_FILE_OFFS
21 check_error
'p /bin/sh:10 ^@symbol' # SYM_ON_UPROBE