projects
/
linux-2.6-microblaze.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'misc.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git]
/
tools
/
testing
/
selftests
/
damon
/
_chk_dependency.sh
1
#!/bin/bash
2
# SPDX-License-Identifier: GPL-2.0
3
4
# Kselftest framework requirement - SKIP code is 4.
5
ksft_skip=4
6
7
DBGFS=/sys/kernel/debug/damon
8
9
if [ $EUID -ne 0 ];
10
then
11
echo "Run as root"
12
exit $ksft_skip
13
fi
14
15
if [ ! -d "$DBGFS" ]
16
then
17
echo "$DBGFS not found"
18
exit $ksft_skip
19
fi
20
21
for f in attrs target_ids monitor_on
22
do
23
if [ ! -f "$DBGFS/$f" ]
24
then
25
echo "$f not found"
26
exit 1
27
fi
28
done