forked from Qortal/Brooklyn
7d3018da4c
* NVME, SATA NAND Security added * Qortal Core exception fetcher is now redone. * Update DT overlays for firmware * Fix for bvb clockj settings * Fix for no audio for sissy desktop porn watchers -_- ( thanks crowetic for watching gay porn and reporting me that bug asshat ) * Normalize the fetch() stream while doing a peer to peer handshake for nodes * Fix for RNG token editing error while performing a SHA256 encryption * Now under voltage errors will blink red led constantly for 5 minutes then go solid. * Improve kernel thread scaling for Qortal 2.0 core * HDMI circuit is now enabled at power up instead. * Added KMS * Added line replication instead of interpolation for VC4 GPU resulting in slightly better frame rates * Fix for long and doubles * Backplane clock is now set at standard rate * Capped HVEC clocks * Add support for Creative Cinema webcam for donkers who like sharing dick pics. *looks at crowetic* * More scanline XGA modes for people who have weird ass monitors of all sorts. * TX/RX flow control support is now 100% stable. No lags over 1Gbps ethernet. ( Hello Qortal 3.0 ) * Using flush cache instead of fetch for QC 2.0 resulting in performance gains * VC4 clock is now enforced for desktop oriented images. * Ondemand governor now waits for 2 seconds instead of 0.5ms to scale down to the lowest safest clock freq preventing lags to the core. * Timeout of OC set at 35ms from 90ms resulting in way better clocks and sync for Qortal 2.0 core
91 lines
2.8 KiB
Bash
91 lines
2.8 KiB
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# description: Generic dynamic event - add/remove eprobe events
|
|
# requires: dynamic_events events/syscalls/sys_enter_openat "e[:[<group>/]<event>] <attached-group>.<attached-event> [<args>]":README
|
|
|
|
echo 0 > events/enable
|
|
|
|
clear_dynamic_events
|
|
|
|
SYSTEM="syscalls"
|
|
EVENT="sys_enter_openat"
|
|
FIELD="filename"
|
|
EPROBE="eprobe_open"
|
|
OPTIONS="file=+0(\$filename):ustring"
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
|
|
grep -q "$EPROBE" dynamic_events
|
|
test -d events/eprobes/$EPROBE
|
|
|
|
echo 1 > events/eprobes/$EPROBE/enable
|
|
ls
|
|
echo 0 > events/eprobes/$EPROBE/enable
|
|
|
|
content=`grep '^ *ls-' trace | grep 'file='`
|
|
nocontent=`grep '^ *ls-' trace | grep 'file=' | grep -v -e '"/' -e '"."' -e '(fault)' ` || true
|
|
|
|
if [ -z "$content" ]; then
|
|
exit_fail
|
|
fi
|
|
|
|
if [ ! -z "$nocontent" ]; then
|
|
exit_fail
|
|
fi
|
|
|
|
echo "-:$EPROBE" >> dynamic_events
|
|
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
# test various ways to remove the probe (already tested with just event name)
|
|
|
|
# With group name
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
grep -q "$EPROBE" dynamic_events
|
|
test -d events/eprobes/$EPROBE
|
|
echo "-:eprobes/$EPROBE" >> dynamic_events
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
# With group name and system/event
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
grep -q "$EPROBE" dynamic_events
|
|
test -d events/eprobes/$EPROBE
|
|
echo "-:eprobes/$EPROBE $SYSTEM/$EVENT" >> dynamic_events
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
# With just event name and system/event
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
grep -q "$EPROBE" dynamic_events
|
|
test -d events/eprobes/$EPROBE
|
|
echo "-:$EPROBE $SYSTEM/$EVENT" >> dynamic_events
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
# With just event name and system/event and options
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
grep -q "$EPROBE" dynamic_events
|
|
test -d events/eprobes/$EPROBE
|
|
echo "-:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
# With group name and system/event and options
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
grep -q "$EPROBE" dynamic_events
|
|
test -d events/eprobes/$EPROBE
|
|
echo "-:eprobes/$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
# Finally make sure what is in the dynamic_events file clears it too
|
|
echo "e:$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
LINE=`sed -e '/$EPROBE/s/^e/-/' < dynamic_events`
|
|
test -d events/eprobes/$EPROBE
|
|
echo "-:eprobes/$EPROBE $SYSTEM/$EVENT $OPTIONS" >> dynamic_events
|
|
! grep -q "$EPROBE" dynamic_events
|
|
! test -d events/eprobes/$EPROBE
|
|
|
|
clear_trace
|