Skip to content

Instantly share code, notes, and snippets.

@srikanth007m
Created April 24, 2019 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikanth007m/9b65a22046974b169e6140494d4b8a53 to your computer and use it in GitHub Desktop.
Save srikanth007m/9b65a22046974b169e6140494d4b8a53 to your computer and use it in GitHub Desktop.
/local/mnt2/workspace/research_whitepaper/helper_scripts/post_processing$ python run_all.py -f /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out -o /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_post_processing -n hybrid -m 1
[+] Creating your out directory for you
[+] About to run on 31 ioctl info file(s)
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/lineevent_ioctl.txt
[+] ioctl name: lineevent_ioctl
[!] Skipping lineevent_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/tty_ioctl.txt
[+] ioctl name: tty_ioctl
[!] Skipping tty_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/linehandle_ioctl.txt
[+] ioctl name: linehandle_ioctl
[!] Skipping linehandle_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/stm_char_ioctl.txt
[+] ioctl name: stm_char_ioctl
[!] Skipping stm_char_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/tun_chr_ioctl.txt
[+] ioctl name: tun_chr_ioctl
[!] Skipping tun_chr_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/random_ioctl.txt
[+] ioctl name: random_ioctl
[!] Couldn't find preprocessed files!
[*] Failed precheck
[!] Skipping random_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/subdev_ioctl.txt
[+] ioctl name: subdev_ioctl
[!] Skipping subdev_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/dm_blk_ioctl.txt
[+] ioctl name: dm_blk_ioctl
[!] Skipping dm_blk_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/media_device_ioctl.txt
[+] ioctl name: media_device_ioctl
[!] Skipping media_device_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/ppp_ioctl.txt
[+] ioctl name: ppp_ioctl
[!] Couldn't find preprocessed files!
[*] Failed precheck
[!] Skipping ppp_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/hung_up_tty_ioctl.txt
[+] ioctl name: hung_up_tty_ioctl
[!] Skipping hung_up_tty_ioctl. No commands found
[^] Hit the V4L2 guy!
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/qseecom_ioctl.txt
[+] ioctl name: qseecom_ioctl
/dev/qseecom
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/gpio_ioctl.txt
[+] ioctl name: gpio_ioctl
[!] Skipping gpio_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/v4l2_ioctl.txt
[+] ioctl name: v4l2_ioctl
[!] Skipping v4l2_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/odu_bridge_ioctl.txt
[+] ioctl name: odu_bridge_ioctl
[!] Skipping odu_bridge_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/ipa3_ioctl.txt
[+] ioctl name: ipa3_ioctl
[!] Skipping ipa3_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/fb_ioctl.txt
[+] ioctl name: fb_ioctl
[!] Skipping fb_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/iio_ioctl.txt
[+] ioctl name: iio_ioctl
[!] Skipping iio_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/n_tty_ioctl.txt
[+] ioctl name: n_tty_ioctl
[!] Skipping n_tty_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/loop_control_ioctl.txt
[+] ioctl name: loop_control_ioctl
[!] Skipping loop_control_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/mtp_ioctl.txt
[+] ioctl name: mtp_ioctl
[!] Skipping mtp_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/ppp_net_ioctl.txt
[+] ioctl name: ppp_net_ioctl
[!] Skipping ppp_net_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/sync_file_ioctl.txt
[+] ioctl name: sync_file_ioctl
[!] Skipping sync_file_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/mmc_blk_ioctl.txt
[+] ioctl name: mmc_blk_ioctl
[!] Skipping mmc_blk_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/uart_ioctl.txt
[+] ioctl name: uart_ioctl
[!] Skipping uart_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/acc_ioctl.txt
[+] ioctl name: acc_ioctl
[!] Skipping acc_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/ffs_epfile_ioctl.txt
[+] ioctl name: ffs_epfile_ioctl
[!] Skipping ffs_epfile_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/dma_buf_ioctl.txt
[+] ioctl name: dma_buf_ioctl
[!] Skipping dma_buf_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/lo_ioctl.txt
[+] ioctl name: lo_ioctl
[!] Skipping lo_ioctl. No commands found
[+] Running on file /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/ffs_ep0_ioctl.txt
[+] ioctl name: ffs_ep0_ioctl
[!] Skipping ffs_ep0_ioctl. No commands found
[#] Operating on: /local/mnt2/workspace/kernel-msm-4.14/msm-4.14/out/ioctl_finder_out/qseecom_ioctl.txt
Multiple Devices? (y/n):
> Please enter a device name:
> [&] Couldn't find relevant out file!
> /local/mnt2/workspace/research_whitepaper/helper_scripts/post_processing/run_all.py(357)process_records()
356 # post_parse command
--> 357 post_parse_cmd = 'python post_parse.py ' + out_file + ' ' + device_name + ' ' + str(cmd) + ' ' + struct_name + ' > ' + out_dir + folder_name + '/' + file_name
358 full_out_file = os.path.abspath(out_dir + folder_name + '/' + file_name)
ipdb>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment