TSP: The Transport Sample Protocol



tspfs
[TSP Consumers]

Collaboration diagram for tspfs:tspfs: is a usermode filesystem that uses fuse (see http://fuse.sourceforge.net) to export TSP symbols as files in a directory. More...

usage: tspfs [--url=<tsp_provider_url>] [--sync=<sampling period>]|[--async] [--filter] <mount_point>

tspfs session

 # Start a sample bb
 $ bb_simu -s > /dev/null 2>&1 &

 # TSPize the bb's data
 $ bb_tsp_provide bb_simu 10 &

 # Create the mount point, mount the tspfs filesystem
 $ mkdir mp/
 $ tspfs --ext=.txt --url=rpc://localhost/bb_simu --sync=1 mp/

 # List the symbols
 $ ls -l mp/
 total 0
 -rw-rw-rw-  1 root root 512 jan  1  1970 bb_simu_1_HugeArray[0].txt
 [...]
 -rw-rw-rw-  1 root root 512 jan  1  1970 ECLA_0_d_ecl_lune.txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 ECLA_0_d_ecl_sol.txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 ORBT_0_d_possat_m[0].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 ORBT_0_d_possat_m[1].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 ORBT_0_d_possat_m[2].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 POSA_0_d_DirLun[0].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 POSA_0_d_DirLun[1].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 POSA_0_d_DirLun[2].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 POSA_0_d_DirSol[0].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 POSA_0_d_DirSol[1].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 POSA_0_d_DirSol[2].txt
 -rw-rw-rw-  1 root root 512 jan  1  1970 Sequenceur_0_d_t_s.txt

 # Display a particular value
 $ cat mp/Sequenceur_0_d_t_s.txt
 time=197600 value=3961.280000
 $ cat mp/Sequenceur_0_d_t_s.txt
 time=197680 value=3962.880000

 # Change the display format (notice we use \012, not \n, this needs to be fixed)
 $ setfattr -n format -v 't=%d v=%e\012' ECLA_0_d_ecl_sol.txt
 $ cat ECLA_0_d_ecl_sol.txt
 t=208880 v=1.000000e+00

 # Get the format from a symbol
 $ getfattr -n format bb_simu_int8\[0\]
 # file: bb_simu_int8[0]
 format="time=%d value=%f\012"

 # Go wild, umount the filesystem
 $ fusermount -u mp/
 
Framework Home Page.

Beware !! TSP wave is coming...