Skip to content

Commit

Permalink
run: use the var names KFUNC*
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiwan committed Jan 26, 2025
1 parent fbc8960 commit 89588e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch13/3_lockfree/percpu/run
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ KMOD=percpu_var
KFUNC=sched_setaffinity
KFUNC_PTR=0x$(sudo grep -w "T ${KFUNC}" /proc/kallsyms |awk '{print $1}')
[[ -z "${KFUNC_PTR}" ]] && {
echo "${name}: lookup of /proc/kallsyms failed, aborting..."
echo "${name}: lookup of /proc/kallsyms for function ${KFUNC} failed, aborting..."
exit 1
}
echo "sched_setaffinity() on $(uname -r): KFUNC_PTR=${KFUNC_PTR}
echo "${KFUNC}() on $(uname -r): KFUNC_PTR=${KFUNC_PTR}
WARNING! this is certainly an info-leak! Don't do stuff like this in production."

make clean
Expand Down

0 comments on commit 89588e8

Please sign in to comment.